Solved

Adding web service reference

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

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 39

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now