Adding / removing a file in VS2010 leads to the error "WebDev.WebServer20.exe has stopped working"

This drives us crazy ... In VS2010, MVC2 projects, not all projects .... both in the project that was upgraded from 2008 / mvc1, and in the new project created in 2010 / MVC2, we have the following behavior:

1) develop as usual ..

2) press F5 or CTRL-F5 to open the browser

3) works great!

4) add a CSS file (or a JS file or any file or delete any file) in the project

5) the dialog box "WebDev.WebServer20.exe stops working" immediately appears

You need to close the program, and "F5" again - and everything is right with the world ...

Say we then modify an existing css file. No problems. But adding or removing one, immediate failure.

It seems that the development web server is “locked” in the project file, and when it detects a change, it dies.

Event Viewer is pretty useless. The following is recorded:

Faulty application WebDev.WebServer20.exe, version 10.0.30319.1, time stamp 0x4ba204ca, fault module KERNEL32.dll, version 6.0.6001.18215, time stamp 0x49953395, exception code 0xe053534f, error offset 0x000442eb, process identifier 0x% 9, application start time 0x % 10.

This happens on all of our developer workstations, including Windows Sever 2008, some with Windows XP, and some with Windows 7. All are running VS2010 Premium using ReSharper.

The same thing happens with projects that target the 4.0 platform; instead, only the error message refers to WebDev.WebServer40.exe.

Google . " " - .

, , .

+3
1

, , MVCTurbine StructureMap, , , IOC, StructureMap.

MVCTurbine , 2.2 .

, Global.asax :

//VNEXT: after Turbine 2.2 we wont need this line anymore...
protected override void ShutdownContext() { CurrentContext = null; ServiceLocator = null; }

, . " " MVCTurbine StructureMap .

, ​​, !

+2

Source: https://habr.com/ru/post/1756761/


All Articles