您的位置:首页 > 其它

Web Api 在IIS部署下无法访问的解决方案

2015-01-08 14:51 190 查看
Web Api 在本地开发环境中访问:http://localhost:65434/api/xxx 正常,但是部署到IIS上确访问不了。

查询原因,需要在Web.config中配置:

<system.webServer>

<vaildation vaildateIntegrateModeConfiguration="false" />

<modules runAllManagerModulesForAllRequest="true" />

.....

<add name="ExtensionlessHandler-Integrated-4.0"
path="*"  verb="*"   ... />

</system.webServer>

<system.webServer>
<vaildation vaildateIntegrateModeConfiguration="false" />
<modules runAllManagerModulesForAllRequest="true" />
.....
<add name="ExtensionlessHandler-Integrated-4.0" path="*" verb="*" .../>
</system.webServer>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐