Click here to Skip to main content
15,914,109 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Fellas,

my web service is working fine in my local but when i published it in our server it goes all wrong
it receives error:
"A connection attempt failed because the connected party did not properly respond after a period of time in"

my webservice should receive the code generated by our third party


here's my code:
C#
 Uri uri = new Uri(url, UriKind.Absolute);
WebResponse objResponse;
WebRequest objRequest;
objRequest = System.Net.HttpWebRequest.Create(url);
objRequest.Proxy = System.Net.HttpWebRequest.GetSystemWebProxy();
objRequest.Proxy.Credentials = CredentialCache.DefaultCredentials;
objResponse = objRequest.GetResponse();


any idea on this error?

appreciate your help here!!! :)
Posted

1 solution

I think above server not given you access or firewall restrict to do so.
 
Share this answer
 
Comments
ToBecomeDay 4-Jun-14 21:56pm    
Hi Muskesh, is that the third party that we are connecting or the server where i host my webservice?

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