Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adding web service reference

Posted on 2013-10-22
4
Medium Priority
?
1,468 Views
Last Modified: 2013-11-28
Hi Experts,

I started to use vs 2012 and just today tried to add for the first time in this IDE web service reference. The steps are easy just to go via menu and I can see when I discover myservice.asmx but when I click OK to add it I get error :

There was an error downloading metadata from the address. Please verify that you have entered a valid address.

My service is within same project where I am trying to add it and may be that's the issue but I doubt. Its something else and I would need your help.

Thanks a lot.
0
Comment
Question by:fpoyavo
  • 2
  • 2
4 Comments
 
LVL 41

Accepted Solution

by:
Kyle Abrahams earned 1500 total points
ID: 39591497
Try adding this to your web.config:
<serviceDebug includeExceptionDetailInFaults="true"/>


It will tell you the exact error.

Also ensure that you can hit the webservice from outside of VS.

EG:  http://localhost/mypath/WebService.asmx


Lastly try building the project / solution and then re-adding the reference.
Source: http://social.msdn.microsoft.com/Forums/vstudio/en-US/faf7cde1-7abd-4a55-b0de-d041bc4d8e6d/there-was-an-error-downloading-metadata-from-the-address-please-verify-that-you-have-entered-a
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 39591585
Hi ged325,

<serviceDebug includeExceptionDetailInFaults="true"/>   in vs 2012 it is complaining its invalid tag.

I checked web service as a first step.

I am not doing WCF so that example is not really appropriate.

Thanks.
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 39592304
Any other suggestions ?
0
 
LVL 41

Expert Comment

by:Kyle Abrahams
ID: 39592654
try putting ?wsdl at the end of the request, both as what you reference and what you browse to, let me know if that causes any errors.  I remember seeing that once before but forgot how I took care of it.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question