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>
查询原因,需要在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>
相关文章推荐
- Win7 IIS 部署网站,同局域网中电脑无法访问解决方案
- Win7部署asp.net网站,问题逐个突破<一>---Win7 IIS 部署网站,同局域网中电脑无法访问解决方案
- Win7 IIS部署网站局域网内用户无法访问网站解决方案
- Win7 IIS 部署网站,同局域网中电脑无法访问解决方案
- Windows 2003 IIS 6.0 安装 Framework 4.0 导致 Framework 2.0 版本无法正常访问和Javascript 解析错误 解决方案
- iis发布的网站用localhost可以访问,改成IP就无法访问的解决方案
- html5的video标签插入mp4视频放在iis服务器访问无法播放解决方案
- iis发布的网站用localhost可以访问,改成IP就无法访问的解决方案
- 无法访问部署在linux上的Tomcat服务器解决方案
- IIS部署网站后, 无法正常访问网站问题
- 把网站部署到IIS后访问不了,报错IIS管理器无法验证此内置账户是否有访问权
- IIS发布的网站用localhost可以访问,改成IP就无法访问的解决方案 .
- .NET webservice 部署IIS 外网访问无法调用
- 部署到IIS上的网站打开时总是显示无法找到资源解决方案
- hadoop完全分布式部署无法访问namenode的8020端口解决方案
- MVC 4.0项目部署在IIS上无法浏览的解决方案
- 网站无法访问,重启IIS无效,必须重启服务器[解决方案,待定]
- IIS5.1 无法运行asp.net网站但可访问静态页的解决方案
- asp.net mvc 发布到iis上无法访问资源解决方案
- 前端-网站部署-本地IIS部署-无法访问-端口权限开启