using System.Net.NetworkCredentials on windows NT

From: Tim B. (TimBur_at_seattletimes.com)
Date: 07/28/04


Date: Wed, 28 Jul 2004 07:26:03 -0700

I have some code that calls a webservice and sets the credentials as follows

WS.Credentials = New System.Net.NetworkCredential("user", "pw", "")

This works on xp and win2K, but when deployed to an NT workstation PC, I get a 401 unauthorized. If I allow anonymous on the webservice virtual directory, then it works on NT.

Is there something on NT or the framework on NT that is causing this to fail ?

Thanks
Tim B.



Relevant Pages

  • RE: vs 2005 - web reference issue
    ... webreference against a webservice which is protected by authentication, ... provide credentials, and will prompt credentials input dialog when visit ... the WSDL document into a local xml file on file disk. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.vsnet.ide)
  • RE: simulating asp.net impersonation
    ... And this will depend on the client credential passed from the ... windows, webservice dosn't support interactive ... through the proxy class's Credentials property and specify the ... Message to contain our custom authentication info. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: The request failed with HTTP status 401: Unauthorized
    ... I have set virtual directory of the WebService to anonymous, ... Your browser supplies the credentials of the logged in user, ... Check out the Credentials property of teh web service proxy. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: accessing WebService from asp.net App on load balanced Servers
    ... he found that this worked only when the webservice is on the same ... they have not network credentials. ... same server with the asp.net web app.... ... | I have an ASP.Net application that retrieves Data from a Web Service. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Calling a Web Service hosted on a Web Logic server from a C# S
    ... The webservice I'm trying to connect to is written with PHP on Apache. ... seen some posts regarding the Overriding of GetWebRequest with this CSharp ... I cannot work out where this Override goes? ... >> include credentials in the WebLogic web service request. ...
    (microsoft.public.dotnet.framework.webservices)