How to fix the problem of disconnecting the application domain due to the "change in app_offline.htm" after editing the file in Visual Studio?

Every time I modify a file in a web project in Visual Studio (.js, .css, .cshtml, regardless), my application domain is immediately turned off and restarted. Shutdown message (which I register) " HostingEnvironment triggers shutdown / change in App_Offline.htm "

This has just begun to occur after months of normal development. I am looking for an explanation or suggestions for troubleshooting.

Relevant Information:

  • This happens after a file change in a web project. I am NOT compiling.
  • ASP.NET MVC 3 with T4MVC plugin
  • Occurs when the view or any content file [.js, .css] referenced by the web project changes
  • The project is configured to use the Visual Studio internal web server, but I access the website through IIS. [The web directory points to the web project directory on disk]
  • I do not have the app_offline.htm file, and I do not see it created for me.
  • Files in / bin / are not displayed for change [timestamps are not changed]
  • I am using NCrunch, but this is still happening with disabled
  • This only happens when a file is modified in Visual Studio. Editing using a text editor does not cause the application domain to restart.

How can I understand what Visual Studio does for this? This makes it very difficult to work with html / css / javascript for obvious reasons.

+5
source share
1 answer

, T4MVC .

: , , - T4MVC.cs [T4MVC1.cs]. , , T4MVC.cs .

T4MVC nuget, web.csproj <LastGenOutput>, "T4MVC.cs".

, , T4MVC Visual Studio .

+6

All Articles