我们在IIS 7.5中部署了ASP.NET网站(App 1)。然后在该应用程序下创建另一个ASP.NET应用程序(App 2)。但在应用程序2,我不希望从应用程序1.停止从IIS 7.5中的父ASP.NET应用程序继承web.config
继承web.config
如果我尝试做应用1的下面,web.config
:
<location path="." inheritInChildApplications="false">
<configSections>
<!-- etc -->
</configSections>
</location>
它报告的错误:
Config Error The configuration section 'configSections' cannot be read because it is missing a section declaration
如果我尝试这样做:
<remove name = "system.web.extensions" />
它仍然报告同样的错误:
只需要添加到上面,APP 1(父)正在使用.net 3.5框架,而APP 2(子)正在使用.net 2.x框架。 – Farrukh 2011-05-31 06:11:40
.net 3.5运行在.net 2框架的ontop上。 – 2011-06-01 10:30:00