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
Solved

Adding web service reference

Posted on 2013-10-22
4
1,160 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 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display

808 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