Web service using old proxy settings?

I have a rather confusing issue.

Web Service A - Called directly using a Win32 application and other web applications
Web Service B - Called directly by the same Win32 application and a different set of other web applications

I am working on adding a reference to B in A, so that we can use the functionality of B, providing without overwriting / reintegrating this code manually in A. I have a developed copy of A on my PC that I work with, and I call a test copy B on a remote server (the test server accesses via the Internet from our hosting provider)

I believe that my code is ready for testing, but every time I go to test it on my local copy, I get the following error.

No connection can be made because the target machine has actively abandoned it. 10.1.X.XX: 8080

at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

The internal IP address provided in the error message was our old BorderManager gateway. It is no longer used, I checked all the Machine.Configs, Web.Configs files, the registry entries even until I did a full-text search of all files on my PC under 2 MB for the IP address there. I double-checked the settings for connecting to browsers, but this is managed by a Group Policy company. I called the network guy to make sure that the IP address is not listed anywhere in the applicable policy.

I cannot find it anywhere except to try to step over the code that uses it and get the exception shown above.

Code I use for web service B:

 Dim oZip As New ZipTerr.ZIPTerr
 oZip.Url = "https://test.test.com/ZIPTerr/ZIPTerr.asmx" ' This really shouldn't be hardcoded...
 oZip.PreAuthenticate = True
 oZip.Credentials = New System.Net.NetworkCredential("username", "password")
 aCity = oZip.GetCities(pstrZip, Date.Now())

oZip.GetCities() . IP- , , IP- 10. *, IP-.

?

: - .NET 2.0

+3
2

System.Net , .

MS , .config.

, : -

: -

 ProxyCfg -d

-, WinHTTP ( .NET).

 ProxyCfg -u

- , WinHTTP.

- web.config : -

<system.net>
  <defaultProxy enabled="true">
     <!-- if above set to true configure below accordingly if false delete below-->
     <proxy proxyaddress="http://127.0.0.1:8888" bypassonlocal="False"/>
  </defaultProxy>
</system.net>
+4

:

, . - A B?

dll, dll .

,

0

Source: https://habr.com/ru/post/1711618/


All Articles