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

Link Creator 1.4

Version 1.4 added: 1) Save as Manilla Softkey (Left and Right Softkey, and it works very well with arguments - so now creating link to for ex.TouchLockPro with additional LOCK argument is very easy...) 2) Create URL/Mail - now You can create mail or www.* link and put it to whatever you want place ;) - it uses default - signed to specified type system program (for browsing www and creating emails) fixed: 1) exception when file doesn't exist (in selecting File and clicking OK) - now if everything is allright OK button will be colored to Red otherwise you will be promped with msg. 2) installation problem with adding shortcut to Link Creator to the Start Menu\Programs - now it's fixed (on not WWE Roms for ex. Polish Roms there was problem with it) 3) in 1.3 version link additional argument was added under inverted commas (1#"\FOLDER\program.exe argument"), now it's fixed (added checkbox "argument outside inverted commas" for default it is checked... and now...

Link Creator 1.1

Added: 1) file filtering: all files, exe, jpg, bmp, png, mp3, wav, avi, mp4, wmv, txt, pdf, doc 2) changed caption Select Exe to Select File :) 3) new Menu Options: - Save in Programs - Save in Start Menu - Save in StartUp - Save in Selected Place - Close 4) included System.Windows.Forms.dll for same openfiledialog on every .net platform... (I guess :) ) (thanks to Mieszko Zagańczyk from SmartMobile.pl for testing and noticing problem with filtering and different open file dialog on his Touch HD) LINK TO XDA-DEVELOPERS.COM THREAD

RWA - Run With Argument - 1.0

RWA1.0 - Run With Argument small application that allows to run any other *.exe file with arguments...for some reasons it can be useful especially when working on HTC devices... - argument is saved in config file that has the same filename as rwa.exe file but with extension: *.txt (ex RWA.exe -> RWA.txt, AWR.exe -> AWR.txt, 123.exe->123.txt etc...) that function allows to have multi RWAs in system, without conflicts... - the config file is built as: \Windows\tmail.exe -t so the first line is absolute path to file, second line is argument that will be used when launching new process... - run RWA with any argument to enable logger (weird he ?? that application allows to run other applications with argument... and I want You to run it with arguments... heh... ;) only for education purpose... ) 12:45:39 _____________________NEW__ATTEMPT____________________ 12:45:39 The Log filename is: RWA1log.txt 12:45:39 Trying to open Registry 12:45:40 RWA filename: RWA1.exe 12:45:40 RWA ...