Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
I have an existing project with a Silverlight 3 app. I created a SALESservice.svc. This is working fine. Now I added another TARGETservice.svc to my project
and rebuilt my entire project but when I am trying to add the service reference in to the Silverlight app I get the following error:
There was an error downloading metadata from the address.  Please verify that you have entered a valid address.

I didn't write any code in ISALESservice.svc and ITARGETservice.svc. I have written in SALESservice.svc.cs and TARGETservice.svc.cs files.

Is this causing the error?
SALESservice.svc is working. I didn't add any code in web.config file.

Regards,
JN


[orig. title]
how can I solve There was an error downloading metadata from the address error in WCF In VS 2008?
Posted
Updated 26-Jul-17 1:10am
v4
Comments
dan!sh 24-Feb-11 9:52am    
Have you provided correct service endpoint? And can you access it via browser?
ArunRajendra 3-Jul-13 0:50am    
Remove the newly added service to verify if that's what is causing the error.
CHill60 3-Jul-13 7:29am    
It is not quite a "newly added" service as the question is 2 years old :-)

It may cause due to different port or service name used when adding the service reference.

Make sure the port or service name same when the time of being added service reference
 
Share this answer
 
plz check end points & attributes for the created & existing services,

check all the settings related to wcf services then deploy & consume
 
Share this answer
 
Solution 7

I was using a class that I was returning from a WCF call that did not have the correct Data Contract or Data Member decorations associated with it or it's properties. As soon as this was corrected, it updated normally.
 
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