EduXavier
EduXavier

Reputation: 515

asp.net: slow debugging - always fire application_start

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

Answers (2)

Ravi Vanapalli
Ravi Vanapalli

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

Alex
Alex

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

Related Questions