Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to add webreference with authentication in VS 2010?

Posted on 2011-09-07
1
Medium Priority
?
2,838 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 2000 total points
ID: 36494233
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
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…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

783 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