views:

18

answers:

1

Somehow I screwed with my IIS7 settings, and VS2010 doesn't want to start websites in debugging mode. I spent a few hours convulsively scavenging before I found a solution. It just needed to put into web.config

<system.webServer>
  <validation validateIntegratedModeConfiguration="false" />
</system.webServer>

Now, I'd like to put that somewhere but only once, instead of everytime cluttering web.config in every web-app.

I tried to fix that in machine.config files. I put that in every machine.config file that I found under windows\microsoft.net folder hierarchy. Nothing.

I did the same thing with every web.config file there. Nada. Still cannot debug.

So. I guess I should restart something. iisreset.exe, entire windows, thirteen different services, maybe I should re-install something or kill something or somebody.

Please, tell me where exactly I should put those strings, and what should I restart. Or maybe I can do in a Linux fun-boys enviably fashion - click a few nice icons and restore normal behavior of VS without even touching .config files.

BTW, I have Win-7 x64.

Thank you

+1  A: 

The only place where you can place that tag to apply to all sites/applications is inside ApplicationHost.config that lives in %windir%\system32\inetsrv\config\, it is the IIS configuration and what it tells is that some of the built-in warnings (such as finding a httpModule/httpHandler in an app running in Classic Mode, and others) should be disabled.

Oh an to help understand the hierarchy, I have a picture I made a few years ago: alt text

CarlosAg
Excellent answer! Thank you.
Ike
Good answer but it didn't help me.I haven't found any ApplicationHost.config in the folder, so I created one. Nothing.Then I searched for all ApplicationHost.config files and found one here:C:\Windows\winsxs\amd64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7600.16385_none_6cde646bce835df3I put that tag into it, and still nothing...
Ike
It worked only when I placed that tag into wwwroot's web.config.I guess problemo solved. Thank you!
Ike