Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have hosted my wcf service in my server,and when i try to add the service reference in my application am getting this error..please help me to identify

There was an error downloading 'http://118.139.161.77:81/Service1.svc'.
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 118.139.161.77:81
Metadata contains a reference that cannot be resolved: 'http://118.139.161.77:81/Service1.svc'.
There was no endpoint listening at http://118.139.161.77:81/Service1.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 118.139.161.77:81
If the service is defined in the current solution, try building the solution and adding the service reference again.
Posted
Updated 31-Aug-12 8:41am
v2

Is your service hosted on that server? Is the port 81 available?

Go to your web browser and paste http://118.139.161.77:81/Service1.svc you must see a test client page.

Hope it helps.
 
Share this answer
 
Comments
Mydsh 31-Aug-12 11:08am    
yes its hosted in the server,but am not sure if port 81 available and if i paste http://118.139.161.77:81/Service1.svc am not able to see test client.
Christian Amado 31-Aug-12 11:11am    
So, I think you answer your question.
Hi all,
I have same problem.

I see test client, but when I add service reference, I get error:

CSS
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 203.162.42.199:8080
Metadata contains a reference that cannot be resolved:


How can I fix it?
Thanks.
 
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