webAPI 部署服务器404错误
环境检查:
1.netFramework 版本(系统安装版本及应用程序池以及webconfig的配置)
2.端口号是否可以正常访问(telnet 命令查看)
在一以上正常的情况下。尝试以下配置
IIS7.5版本,在 web.config 中增加节点
<system.webServer>
</system.webServer>
参考如下:
<system.webServer> <modules runAllManagedModulesForAllRequests="true"> <remove name="WebDAVModule" /> </modules> <validation validateIntegratedModeConfiguration="false" /> <!--<modules> <remove name="applicationinsightswebtracking" /> <add name="applicationinsightswebtracking" type="microsoft.applicationinsights.web.applicationinsightshttpmodule, microsoft.ai.web" precondition="managedhandler" /> </modules>--> <handlers> <remove name="Extensi12345678910