Have you upgraded to Visual studio 2008?
If so, you might have meet the following problem:
- You have a solution with more than one ASP.NET Web Application project.
- At least one of those web projects is configured to Use Visual Studio Development Server.
Now, you try to debug one of those web projects. Only one.
you do this by one of those two options:
- right click the project --> click debug --> start new instance
- If your web application already runs (usually on IIS settings) --> attach to process.
Now comes the surprise:
Now, this is not necessarily a bad behavior, as it doesn't actually start all your web projects (which might finish with a lot CPU and Memory load). It is just open a port for those applications. The first time you request a page is the first time the application loaded.
However - it is not the behavior most of us want.
I guess Microsoft's developers couldn't hide this setting in a better place...
- Stand on the web project (on the solution explorer)
- From the menu bar --> View --> Properties Window
- on the "Always start when debugging" change the value to False.
If you work in a team with source control you'll probably want this setting checked in for all users to get them... but it won't work, as this setting kept on the local .csproj.user file.
It's funny (or it would be if it wasn't sad) that also it is kept in the .user file, it still will ask you to check out the file.
To get over this check out problem, you'll need to uncheck the "Apply server settings to all users (store in project file)" setting on the web tab, in the project properties page, and check in the project.
Hope it will help someone...