在IIS里修改web.config,增加下面一行设置就可以解决问题。
<PageParserPaths>
<PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
</PageParserPaths>
<PageParserPaths>
<PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
</PageParserPaths>
本文介绍了解决IIS中web.config配置问题的方法。通过在web.config文件中增加特定的PageParserPaths设置,可以确保服务器正确解析所有的ASP.NET页面。
121

被折叠的 条评论
为什么被折叠?



