Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have Created a web service of calculator to use it in my web application.
For this web service i have two face two problems
1. First one
when i want to add web service reference in my project the it show the following message.
There was an error downloading metadata from the address. Please verify that you have entered a valid address

What I have tried:

Add Reference of Websevice in web application
Posted
Updated 31-May-17 3:37am
Comments
ZurdoDev 31-May-17 8:59am    
Not sure how we can help since we can't see anything you did.
F-ES Sitecore 31-May-17 9:58am    
As the error says the url isn't valid. I'm going to take a guess that your url is something like

http://localhost:1234/MyService.asmx

If that's the case then that url is only valid when Visual Studio is running in debug mode, so have two copies of VS open, one with the service running and the other where you add the reference, or don't use the VS webserver but use IIS instead (it's in the project options).

1 solution

 
Share this answer
 
v2

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