Przejdź do głównej zawartości

Runtime Error after Web publish via Visual Studio 2015


getting Runtime Error after publishing even simplest (new project) web application with VisualStudio 2015 ?

and in IIS logs you have:
Cannot execute a program. The command being executed was "D:\HostingSpaces\XXXXX\wwwroot\bin\roslyn\csc.exe" /shared /keepalive:"10" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f282ca1d\e26e10c7\xj0hprs3.cmdline". at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() at System.Web.Compilation.BuildManager.CallAppInitializeMethod() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) Cannot execute a program. The command being executed was ...

try changing publish web settings
RightClick on Project -> select Publish -> go to Settings -> extend File Publish Options
tick Precompile during publish. click on Configure -> untick Allow precompiled site to be updated
confirm with OK,



publish. check again.

Komentarze

Popularne posty z tego bloga

NetBeans and Trackpoint problem...

Netbeans doesn't allow (for some reasons) using native trackpoint + third blue button for scrolling through code view listing :/ that's annoying if You're not using mouse wheel ... I have Lenovo X200 and that was big problem for me... here is solution: open C:\Program Files\Lenovo\TrackPoint find tp4table.dat an edit it in Notepad++, add these lines, between similar lines: ; NetBeans support *,*,netbeans.exe,*,*,*,WheelStd,0,9 save the file, restart computer and voila... now Netbeans supports scrolling with Lenevo's trackpoint... tested with Netbeans 7.01 on win7 and default lenovo's trackpoint drivers

Send WinKey - Open Start Menu...

Send WinKey is tiny application that is emulating click of Windows Key... * You can use it while binding / mapping your hardware keys (ex Xperia, Touch Pro etc.) when You need the "fast" opening of Start menu (not touching screen but pressing the button...) Cab Installation XDA-Developers Thread *(yesssss... I know that MortScript has got that kind of options... but ... not everybody needs to have mortscript installed... or not everybody wants to edit those lines of scripts/codes... etc) :) cheers...