Solved

How to add webreference with authentication in VS 2010?

Posted on 2011-09-07
1
2,542 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

16 Experts available now in Live!

Get 1:1 Help Now