Connecting to a SOAP service with .Net Core 2.0 behind a proxy

前端 未结 1 1596
走了就别回头了
走了就别回头了 2021-01-15 00:59

I\'m using Visual Studio 2017.

I have noticed that it was not possible to connect to a SOAP service from a .Net Core 2.0 when being behind a proxy (when connected di

相关标签:
1条回答
  • 2021-01-15 01:27

    I had the same problem, no outgoing http requests in Wireshark. The project had to use a corporate proxy with credentials to connect to a https address, thus BasicHttpSecurityMode.Transport was set.

    The reason was a bug in .net Core 2.0 with proxy settings. It hasn't used the WinINet (IE/Edge) proxy settings and you wasn't able to configure a separate proxy, more info here https://github.com/dotnet/wcf/issues/1592.

    Solution

    After upgrading the project to .net Core 2.1, and update System.ServiceModel.Http and other dependcies to latest stable (4.5.3 in my case), the IE/Edge proxy settings are used.

    0 讨论(0)
提交回复
热议问题