我们在 2.0 网站中运行 .NET 4.0 虚拟目录没有任何问题,但相反的方式却给我们带来了一些问题。这是可以理解的,但是有没有办法解决这个问题呢?它们使用不同的应用程序池运行...我们可以让虚拟目录跳过网站的 web.config 并直接转到 machine.config 吗?
我们收到以下错误:
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
Line 22: </appSettings>
Line 23: <system.web>
Line 24: <compilation debug="true" targetFramework="4.0" />
Line 25: <customErrors defaultRedirect="url" mode="RemoteOnly">
Line 26: <error statusCode="404" redirect="~/404.aspx"/>
将以下内容添加到根 web.config 中
<location path="." inheritInChildApplications="false">
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)