Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,
I have a project in which I have to use WCF service build by THIRD PARTY. I am trying to consume it by following way given by this but when I click on 'Add Service Reference' same window opens as in this (same) tutorial.. but when I enter url given by Service developer it gives error...

Error Message: An error(detail) occurred while attempting to find service at <some url="">
Error Detail:
CSS
There was an error downloading 'http://10.144.64.27:83/FetchManager.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 10.144.64.27:83
Metadata contains a reference that cannot be resolved: 'http:xyz/../abc.svc'.
There was no endpoint listening at 'http:xyz/../abc.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 http:xyz 
If the service is defined in the current solution, try building the solution and adding the service reference again.


I am running same url in browser and its working but I am unable to add this to my project. I used above method provided by that link and used svcutil.exe tool as well. Remember I AM NOT SERVICE DEVELOPER, I AM JUST CONSUMING SERVICE. any solution.
Thank you all.
Posted
Updated 18-Nov-13 19:35pm
v4
Comments
♥…ЯҠ…♥ 13-Nov-13 7:50am    
Probably.....
ArunRajendra 13-Nov-13 7:53am    
Check the IIS log and event viewer for any error. Also check the bindings.

1 solution

Quote:
If you can access the .svc endpoint and ?wsdl page correctly from remote client machine(while the other users cannot), I'd suggest you try putting a simple ASP.NET aspx page in the same application to see if the same access issue also occurs for that user. If the same issue occurs for web page, the problem is not WCF specific, but is related to the remote access of the IIS web directory from remote client. Is there any authentication enabled on IIS or have you checked if anonymous authentication is enabled?

Also, another thing you can check is if you have enabled "multipleSiteBindingsEnabled" setting. This can help make your IIS hosted WCF service be able to accept requests under various host names(local servername and external DNS names...). This setting is WCF 4.0 specific


Check here for more : Not able to access the hosted WCF Service
 
Share this answer
 
Comments
[no name] 13-Nov-13 8:09am    
Sir, I haven't build that servise.. Its built by someone else.. By PM gave me that url only..
Sampath Lokuge 13-Nov-13 8:14am    
Yep,If url is not giving any response means, problem is on service side (its not active).So Check that with the person who hosts the service on IIS.
[no name] 13-Nov-13 8:19am    
Thank you sampath :)
Sampath Lokuge 13-Nov-13 8:21am    
You're warmly welcome.
[no name] 19-Nov-13 1:31am    
Now I am able to access xxx.svc?wsdl in nrowser but when I add service reference again it gives same error. I used svcutil.exe as well but problem still persist..

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