ASPRunTime error at build

aniana's Avatar


17 Jun, 2016 09:02 AM

I'm trying to do a proof of concept. I have a ASP.NET MVC project, just the default template. I keep getting these errors. Any idea what may be causing it? Thanks.

error ASPRUNTIME: Could not find a part of the path 'D:\temp\xbhtlttp.a5b\output\_PublishedWebsites\MyName\bin\roslyn\csc.exe'.

[DirectoryNotFoundException]: Could not find a part of the path 'D:\temp\xbhtlttp.a5b\output\_PublishedWebsites\MyName\bin\roslyn\csc.exe'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.get_CompilerName()
   at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.FromFileBatch(CompilerParameters options, String[] fileNames)
   at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames)
   at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames)
   at System.Web.Compilation.AssemblyBuilder.Compile()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)
   at System.Web.Compilation.BuildManager.CompileGlobalAsax()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()

[HttpException]: Could not find a part of the path 'D:\temp\xbhtlttp.a5b\output\_PublishedWebsites\MyName\bin\roslyn\csc.exe'.
   at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Compilation.BuildManager.PrecompileAppInternal(VirtualPath startingVirtualDir, IEnumerable`1 excludedVirtualPaths)
   at System.Web.Compilation.BuildManager.PrecompileApp(VirtualPath startingVirtualDir, IEnumerable`1 excludedVirtualPaths)
   at System.Web.Compilation.BuildManager.PrecompileApp(ClientBuildManagerCallback callback, IEnumerable`1 excludedVirtualPaths)
   at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCallback callback, List`1 excludedVirtualPaths)
   at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCallback callback, List`1 excludedVirtualPaths)
   at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback, Boolean forceCleanBuild)
   at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback)
   at System.Web.Compilation.Precompiler.Main(String[] args)

  1. 1 Posted by balexandre on 17 Jun, 2016 09:20 AM

    balexandre's Avatar


    If you tried to find here in support for roslyn you would find this answer:

    You can likely just copy-paste the lines added in this commit in the bottom of your web project file to fix this issue.


  2. Support Staff 2 Posted by rune on 17 Jun, 2016 03:22 PM

    rune's Avatar

    Hi there,

    Yep copying the roslyn files to the output directory as balexandre pointed out will likely fix this issue. If you continue to experience issues building/precompiling/running the app you may have to also make a few more modifications -- take a look at my comment in this discussion for more information.


  3. rune closed this discussion on 17 Jun, 2016 03:22 PM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac