Javier - thanks, but we have discovered a show-stopping problem with this approach.
Please see this link: http://stackoverflow.com/questions/3344652/adding-removing-a-file-in-vs2010-causes-webdev-webserver20-exe-has-stopped-worki
As it turns out, the problem is caused by Turbine, or by the specific Turbine/StructureMap interaction you suggested in our most recent exchange. Specifically, this line causes the problem:
ServiceLocatorManager.SetLocatorProvider(() => new StructureMapServiceLocator(container));
It does not throw an error. As a matter of fact, it does seem to "work." But for some reason, bizarre to me, it causes the behavior mentioned in the StackOverflow question. You can easily re-create the problem by creating a new
MVC2 project in 2010, adding your Turbine and StructureMap references, inheriting the global.asax and putting that into the ctor as suggested.
Any help you can provide would be greatly appreciated. I really would not like to go back to the non-Turbine world. Certainly not before MVC3 :)