“Entry has already been added” - Two Separate App Pools

后端 未结 2 1626
心在旅途
心在旅途 2020-12-10 16:10

I am creating a test version of an existing production site. A virtual web service application exists inside the site - and the two web configs have the same connection stri

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 17:13

    Web.config inheritance happens even between different appPools. If you want to stop this behavior, you should add the attribute enableConfigurationOverride="false" to your appPool in the applicationHost.config file (located in %WINDIR%\System32\inetsrv\Config and %WINDIR%\SysWOW64\inetsrv\config) as in the following example:

    
        
    
    

    Matteo

提交回复
热议问题