问题
I'm working with larger solution that has several website projects and recently it was decided to switch from Cassini to IIS Express. There are about 10 or so developers who all share the same solution/project and thus web.configs and they are all working happily with IIS Express except for me. The problem is that for no pattern I can figure out, IIS Express constantly resets itself and performs a new build thus resetting the session.
Here are some of the reasons it will rebuild itself:
- Editing an ASPX file
- Doing nothing for a few minutes
- Editing code behind file
- Using the web site as normal
Note: the above actions do not always cause a rebuild. Also many of these actions were perfectly fine using Cassini.
My system is pretty standard compared to the other developers who are not having issues.
Here is some more information:
- I'm using VS2010 SP1 and Windows 7 Professional.
- I started using IIS Express 7.0 but have since tried upgrading to 8 with the same results.
- I've uninstalled/reinstalled IIS Express several times w/o any luck.
- Using ReSharper 7.x
- I've turned off edit and continue
I'm now in full debug mode and this constant rebuild/reset is becoming prohibitive.
EDIT: it is in fact rebuilding as verified using health monitoring per John Saunders' suggestion.
EDIT: one important thing I did not mention is this mainly happens during a debug session. Not only during debug session, but usually. In fact adding a break point, or even hitting a break point can cause a rebuilt.
回答1:
I would look at Resharper as being the cause of the problem. Try completely disabling or uninstalling Resharper and see if the problem persists.
I've been much happier with coderush from dev express myself... I don't work for them just tried both and Resharper really bogged down my system and I didn't like it...
来源:https://stackoverflow.com/questions/14324342/iis-express-with-vs2010-sp1-constantly-rebuilds-web-site