Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I have a web service application project which has to deploy in production server(windows server 2008 r2 standard) and UAT server(web server). One of my web service in the web service application will need to call to a third party web service which named as Service A. I manage to connect to Service A in my UAT successfully but I failed to connect in production server which results in the operation times out. My web service application called the production server failed but I can browse the third party web service in the browser. Both are having the same configuration steps.

Anyone know what might be the cause for this?

Configuration that are done

install .pfx
import .cert (personal & current user)
give permission (IUSR & ASP.NET for web server)

VB Code
VB
Dim cert As New X509Certificate2(HttpContext.Current.ApplicationInstance.Server.MapPath("~/cert/") & ConfigurationManager.AppSettings("CERTIFICATE"), "1234")
ws.ClientCertificates.Add(cert)



Production Error
An error occurred. Error:
System.Net.WebException: The operation has timed out
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)
Posted
Updated 28-Apr-15 22:34pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900