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

Angular2 + Moment.js library with Visual Studio 2017 .Net Core 2.0

Hey there! Recently I was facing problem with adding MomentJs library to Angular2 in .net core 2.0 project.  I'm using Visual Studio 2017 15.3.3.  ( https://www.visualstudio.com/pl/thank-you-downloading-visual-studio/?sku=Community&rel=15 ) Create new test project 2. Use Web -> Angular template  3. Compile and run in chrome to check that everything is ok.  4. Edit package.json. At the end of "dependencies" add new line:  "moment": "2.18.1" 5. Edit tsconfig.json file, At "compilerOptions" add: "allowSyntheticDefaultImports": true, 6. Edit home.component.ts and add: import * as moment from 'moment'; and the constructor.     constructor() {         try {             console.log("test");             let now = moment().format('LLLL');             console.log(now);     ...