Reputation: 515
I have an app with about 200 aspx pages and it started to run slowly some days ago.
It seems that the VS 2010 debugger started to fire application_start on every single code change.
Before this slow behavior, the debuger fire the application_start just once and I had to stop the dev server to force the event.
Thanks.
Upvotes: 0
Views: 329
Reputation: 9950
I think your code is either creating/ deleting folder on web server which is causing the issue.
You should check ASP.NET restarts when a folder is created, renamed or deleted
Upvotes: 0
Reputation: 35407
That is how Application_Start
is supposed to work. It only fires when the Application Pool starts or when there's a change to the code-base, or a web.config file, which would cause it to restart.
This article discusses the topic in more detail.
Upvotes: 4