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,

what would be the cause of this error:

No connection could be made because the target machine actively refused it xxx.xx.xx.xx:443

i'm using asmx web service,

C#
WebResponse objResponse;
WebRequest objRequest;
objRequest = System.Net.HttpWebRequest.Create(url);
objRequest.Proxy.Credentials = CredentialCache.DefaultCredentials;
objResponse = objRequest.GetResponse();


for your expertise guyz! :)

Thanks!
Posted
Comments
Richard MacCutchan 3-Jun-14 3:36am    
You don't have a valid IP address.
ToBecomeDay 3-Jun-14 3:44am    
Hi Richard, nope the url (the url in my code is just for illustration, i can't post the url though :))is valid actually i can browse the url in my browser and it gives me the response but when i run the web service (F5) it goes all wrong :(

 
Share this answer
 
Comments
ToBecomeDay 2-Jun-14 22:40pm    
Hi DamitSL, do you think it might be firewall issue? i tried using console application to get the request and it worked fine, but when in web service the error occurs, im using the same code, have any idea?
Finally some one solved this problem, thanks to this link
http://stackoverflow.com/questions/7386452/add-web-service-reference-from-behind-a-proxy-server[^] credits to sir Israel Margulies!!
 
Share this answer
 

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