How to call to sharepoint web services from ASP.NET, using on both IIS Windows authentication?

Posted on 2007-10-16
Last Modified: 2012-06-27
How to call to Sharepoint (MOSS 2007) web services from ASP.NET (I am calling from myWebService to sp web service). Both ASP.NET and Sharepoint are configured to work with windows authentication.

If I try from
userGroup - is the web reference
userGroup.Credentials = System.Net.CredentialCache.DefaultCredentials;
Get 401 error

I have configured in web.config of my application  impersonate=true.

If pass username, password
userGroup.Credentials = new System.Net.NetworkCredential(name, pass, domain);
 - works OK, but I don't have user password ...

Should I use Kerberos authentication on my IIS and enable accoutns for delegation - or not nesesary?
Question by:netformx
    1 Comment
    LVL 51

    Accepted Solution

    Windows authentication does NOT support pass-through (relaying) authentication which is different than impersonation.

    Keberos will allow this but it is challenging to setup and manage.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 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

    11 Experts available now in Live!

    Get 1:1 Help Now