If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

web.config, problem disabling inheritance

I have a web site at the root that is .net 2.0. I also have several virtual directories beneath it running .net 1 and 2.
In the web.config for the website at wwwroot I have added <location allowOverride="false" path="wwwroot"></location> and this encapsulates everything under the <configuration> node.

Now all the websites show up properly except for the root website, when I first load the page it comes up properly but when a page refresh is done I get the message below. Any ideas why this happens on a refresh?

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Only one <configSections> element allowed per config file and if present must be the first child of the root <configuration> element.