0

VS2005 VB.NET プロジェクトでは、サード パーティの asmx サービスを使用して口座番号を変換しています。

開発マシンではすべて正常に動作しますが、運用サーバーではサービスを呼び出すと例外がスローされます。

これは例外です:

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
   --- End of inner exception stack trace ---
   at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at KlantenApplicatie.BL.IbanConversie.IBANBIC.calculateIBAN1(String ISOcountry, String account)
   at KlantenApplicatie.BL.Relatie.SpecGegFiscTOWBasisinfoBL.convertToIban(String rekeningNummer)

例外が表示されるまでに時間がかかります。

Web サービスは次のとおりです。http://www.ebcs.be/iban/IBANBIC.asmx

4

1 に答える 1

0

問題は、Internet Explorer でのプロキシの構成が間違っていたことです。これを調整すると、すべてうまくいきました。

于 2013-03-27T09:53:56.323 に答える