标签:
最近在二次开发一个APS.NET网站,将网站部署到IIS后,输入:http://localhost/upload/ 时,报错“HTTP 错误 500.0 - Internal Server Error”,
经过一番折腾后,知道与程序内重写URL模块有关,但问题依旧未解决,功夫不负有心人,找到了原因:
程序内有自己的HttpModule URL重写模块,而 IIS 也有自己的重写模块,两者冲突导致。
解决方案:
Web.config -> configuration -> system.webServer -> 添加:
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
</handlers>
HTTP 错误 500.0 - Internal Server Error
标签:
原文地址:http://www.cnblogs.com/Keteven/p/4428957.html