Solved

How to add webreference with authentication in VS 2010?

Posted on 2011-09-07
1
2,697 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
zvytas earned 500 total points
ID: 36494233
0

Featured Post

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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