如何解决如何修复或导致远程服务器返回意外响应错误的原因
我在NET CORE 3.1中创建了一个API并添加了详尽的文档,但是当我将Web API部署到远程服务器上的IIS并尝试调用其中一种方法时,我收到以下错误:
远程服务器返回了意外的响应:(502)代理错误(Forefront TMG拒绝了指定的统一资源定位符(URL)。)。
有人可以解释导致该错误的原因吗?当我在本地运行项目时,一切都运行良好。
[2020-08-26 12:12:33] [Server] [ERROR] [(null)] [? ?] [Application.Core.Helpers.Helper:?] - System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (502) Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL). ).
at System.Runtime.AsyncResult.End [TAsyncResult](IAsyncResult结果) 在System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult结果) 在System.ServiceModel.Channels.ServiceChannel.EndCall处(字符串操作,Object []输出,IAsyncResult结果) 在System.ServiceModel.Channels.ServiceChannelProxy.TaskCreator。 c__DisplayClass1_0.b__0(IAsyncResult asyncResult) ---从之前引发异常的位置开始的堆栈跟踪---
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。