Solved

Adding web service reference

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

772 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