Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7086709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:35:01+00:00 2026-05-28T07:35:01+00:00

Every time I change a file in a web project in Visual Studio (.js,

  • 0

Every time I change a file in a web project in Visual Studio (.js, .css, .cshtml, whatever) my app domain immediately shuts down and restarts. The shutdown message (which I log) is “HostingEnvironment initiated shutdown / Change in App_Offline.htm“

This just started happening after months of normal development. I’m looking for an explanation, or suggestions for troubleshooting.

Relevant info:

  • This occurs after changing a file in the web project. I am NOT doing a compile.
  • ASP.NET MVC 3 with the T4MVC plugin
  • Occurs when I change a view or any content file [.js, .css] referenced by web project
  • Project is configured to use Visual Studio internal web server, but I am accessing the website via IIS. [Web site directory points to the web project directory on disk]
  • I do not have an app_offline.htm file, nor do I see one created for me
  • Files in /bin/ do not appear to be changed [timestamps don’t change]
  • I am using NCrunch, but this still occurs with it disabled
  • This only occurs when I change a file in Visual Studio. Editing with text editor does not cause the app domain restart.

How do I figure out what Visual Studio is doing to cause this? This makes it very difficult to work on html/css/javascript, for obvious reasons.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:35:02+00:00Added an answer on May 28, 2026 at 7:35 am

    It appears that uninstalling and then re-installing T4MVC fixed the problem.

    This might be relevant: a few days before I noticed this app domain restart issue, something happened and created a second T4MVC.cs file [called T4MVC1.cs]. This caused compilation errors from things being defined twice, and deleting the original T4MVC.cs file fixed that problem.

    When I uninstalled and reinstalled the T4MVC package from nuget, I modified the web.csproj file and updated the <LastGenOutput> element to have a value of “T4MVC.cs”.

    I don’t know if the issues with the generated file were related to the app domain restart issues, but after removing and reinstalling the T4MVC package and restarting Visual Studio the issue has gone away.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a web service and every time I change something on the dataset,
Greetings, Every time I make a change to a Sinatra app I'm working on
I'm working on a web application project in Visual Studio 2005 and as of
My Visual Studio debugger detaches every time when I try to access a property
As per the Emacs docs , every time you open a file, Emacs changes
Publishing my entire application to a server in the U.S. every time I change
Every time that I change a value in the designer after saving it, the
I think beestings change the html every time. this means html is not able
How can I change the title of the command prompt window every time I
My client insists not to store prone-to-change configuration settings in the Web.Config file for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.