By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 971 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

Asp.net VB Web Service - The Operations times out

P: 1
I have a web service application project which need 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 I named it 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 cause this?

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

VB Code
Expand|Select|Wrap|Line Numbers
  1. Dim cert As New X509Certificate2(HttpContext.Current.ApplicationInstance.Server.MapPath("~/cert/") & ConfigurationManager.AppSettings("CERTIFICATE"), "1234")
  2. ws.ClientCertificates.Add(cert)
Web.Config
Expand|Select|Wrap|Line Numbers
  1. <appSetting><add key="CERTIFICATE" value="cert.pfx"/>
  2. </appSettings>
Production Error
Expand|Select|Wrap|Line Numbers
  1. An error occurred. Error:
  2. System.Net.WebException: The operation has timed out
  3. at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
  4. at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
  5. at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
Apr 29 '15 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.