是这样的,前两天简单学了一下 webservice 接口,要提供给厂家那边调用,然而前几天蛮好的。今天测试完整理资料写教程,结果就出现了以下困惑。最后贴代码链接。
问题:接口发布到了 IIS 10 上,请求地址是: http://10.20.72.223:12333/WebService1.asmx/GetJson
结果报错如下图:
https://imgur.com/a/hqo0JBm
抓包结果如下图:
https://imgur.com/a/xJLtDYF
最后我直接在 vs 中启动内置 IIS ,请求地址变成: https://localhost:44305/WebService1.asmx/GetJson
结果就请求成功
https://imgur.com/a/NboyhCc
IIS 配置
https://imgur.com/a/Uhpudl6
挂在 IIS 上问题出在哪呢?
代码: https://github.com/Xyg12133617/WebService
问题:接口发布到了 IIS 10 上,请求地址是: http://10.20.72.223:12333/WebService1.asmx/GetJson
结果报错如下图:
https://imgur.com/a/hqo0JBm
抓包结果如下图:
https://imgur.com/a/xJLtDYF
最后我直接在 vs 中启动内置 IIS ,请求地址变成: https://localhost:44305/WebService1.asmx/GetJson
结果就请求成功
https://imgur.com/a/NboyhCc
IIS 配置
https://imgur.com/a/Uhpudl6
挂在 IIS 上问题出在哪呢?
代码: https://github.com/Xyg12133617/WebService