IIS发布子站点配置错误

来源:互联网 发布:苹果之家淘宝烂到爆 编辑:程序博客网 时间:2024/05/20 16:33

配置错误是因为子站点继承了父站点的web.config文件,我们就要让子网站或虚拟目录不继承网站的web.config文件

程序代码 <location path="." allowOverride="true" inheritInChildApplications="false"> <system.web> <pages maintainScrollPositionOnPostBack="true"> </system.web > </location> 如此下一层的虚拟目录就可以达到你要的需求了。


原创粉丝点击