Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when i am adding web service refrence to my project than i am getting error..

CSS
There was an error downloading 'http://localhost:42030/Service1.asmx'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:42030
There was an error downloading 'http://localhost:42030/Service1.asmx/$metadata'.


kindly help me
Posted
Updated 1-Dec-14 1:40am
v2
Comments
Mathew Soji 1-Dec-14 4:19am    
Seems Duplicate

http://www.codeproject.com/Questions/844889/Getting-error-during-exporting-webservice-to-mine
syed shanu 1-Dec-14 4:35am    
Check this link Hope this will help you.
http://www.codeproject.com/Questions/426966/System-Net-Sockets-SocketExcep
Kornfeld Eliyahu Peter 1-Dec-14 5:28am    
From where did you got that URL? Are you sure your web service runs on port 42030?
Member 10874581 1-Dec-14 7:09am    
ya sure runing on 42030..i did copy the url of webservice from browser and paste during refrence a service to mine project..kindly help me

1 solution

It is because when you are adding the Web Reference at that time it checks for that Web URL to be live and pingable, but in your case you are trying to add some local Web URL which is not live at the moment you are adding Web Reference.
Keep your web Servive(Service1.asmx) in running mode and then try to add Web Reference.
 
Share this answer
 
Comments
Member 10874581 2-Dec-14 0:53am    
Thankew:-) praveen sir.
Praveen Kumar Upadhyay 2-Dec-14 1:59am    
My pleasure and thank you for accepting the answer and rating.

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