views:

40

answers:

0

hi,

I have an asp.net web app which i recently upgraded to .net 4.0 framework and published. Part of the web application functionality is to connect to another service when user submits info. I get the following error:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

[SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 207.194.0.83:443] System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +225 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +279

[WebException: Unable to connect to the remote server] System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) +6022589 System.Net.HttpWebRequest.GetRequestStream() +13 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +110 ERS.InstallmentService.InstallmentService.SubmitInstallments(ISInstallment[] installments, ISCreditCard creditcardInfo) in C:\Projects\EventRegistrationSystem\application\ERS\ERS\Web References\InstallmentService\Reference.cs:78 ERS.registration.SubmitOrder(String user, String consID, String prodNum, Decimal itemPrice, String locale, Decimal gstRate, Decimal pstRate, Decimal subtotal, Decimal GST, Decimal PST, Decimal totalOwing, String eventTitle, String registrantFirstName) in C:\Projects\EventRegistrationSystem\application\ERS\ERS\registration.aspx.cs:645 ERS.registration.SubmitRegistration() in C:\Projects\EventRegistrationSystem\application\ERS\ERS\registration.aspx.cs:501

Here is some info regarding the app and the service:

  • the web app and the service both reside on the same server.
  • The web app is set up as a virtual directory under a website on iis.
  • the service is also set up as a virtual directory under the same website on iis.
  • the web app used to be .net 3.5 but has now been upgraded to 4.0
  • the web service is still .net 3.5
  • when i run the web app locally in debug mode with the same code that's published, and connect it to live service, it works. so the problem seems to be with the published web app.