Solved

How to add webreference with authentication in VS 2010?

Posted on 2011-09-07
1
2,665 Views
Last Modified: 2012-05-12
Hi ..

I want to add a SharePoint reference to a windows forms project.

When I use "Add Service reference" and enter the path to the reference http://myserver.com/_vti_bin/Copy.asmx  it tells me that the authentication as "anonymous" is not valid.

How can I get my VS 2010 to use my actual credentials for service discovery?

The message is:
There was an error downloading 'http://myserver.com/_vti_bin/Copy.asmx?WSDL'.
The request failed with HTTP status 404: Not Found.
Metadata contains a reference that cannot be resolved: 'http://myserver.com/_vti_bin/Copy.asmx?WSDL'.
The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM'.
The remote server returned an error: (401) Unauthorized.
If the service is defined in the current solution, try building the solution and adding the service reference again.

Open in new window


Thanks in advance
0
Comment
Question by:HugoHiasl
1 Comment
 
LVL 5

Accepted Solution

by:
zvytas earned 500 total points
ID: 36494233
0

Featured Post

Industry Leaders: 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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

735 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