Solved

Adding web service reference

Posted on 2013-10-22
4
1,234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 500 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 40

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

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

710 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