0

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.

  • Windows 2008 R2 server x64
  • Visual Studio 2010
  • 3 developers via rdp (all with the same issue)

Thanks.

Mikael Engver
  • 4,634
  • 4
  • 46
  • 53
EduXavier
  • 495
  • 1
  • 7
  • 13

2 Answers2

4

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.

Alex
  • 34,899
  • 5
  • 77
  • 90
  • 1
    I think it fires, when an application pool starts, which is not the same as the web-server. And in fact it should fire, when code changes. – TGlatzer Sep 13 '12 at 14:00
  • @Xander, reading the article you posted now I think the application_start is because any code change make a full rebuild. – EduXavier Sep 13 '12 at 14:45
0

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

Community
  • 1
  • 1
Ravi Vanapalli
  • 9,805
  • 3
  • 33
  • 43