Credentials being lost between servers - out of ideas!

From: Jason Wood (Wood_at_discussions.microsoft.com)
Date: 09/20/04


Date: Mon, 20 Sep 2004 10:21:04 -0700

I have read everything I can find on this and I can't figure out what is
failing.

I have a webservice in production that is working great. It uses windows
authentication and is ssl-encrypted.

I have a web app that works when it is on the same server as the web
service. However, when I am running it from my local machine, it fails in the
call to the web service. Of course, this is where I intend to test from, so I
really want to get it working.

I have my app set up to impersonate, using windows authentication, and I
disallow anonymous access. I have established that the request is going
direct to the production server, not out to our proxy/firewall.

I establish credentials with this code:

        RebuildCodes.Credentials =
System.Net.CredentialCache.DefaultCredentials

The specific error message I get is

Server was unable to process request. --> Login failed for user '\'.

And the trace looks like this:

[SoapException: Server was unable to process request. --> Login failed for
user '\'.]
   
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
   PayrollWebApps.com.kenonic.webkc.Service1.RebuildShiftOTCodes() in
c:\inetpub\wwwroot\PayrollWebApps\Web
References\com.kenonic.webkc\Reference.vb:42
   PayrollWebApps.WebForm1.Button1_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\PayrollWebApps\WebForm1.aspx.vb:35
   System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   System.Web.UI.Page.ProcessRequestMain()

I also tried running this from a windows app, to rule out my web.config file
and my IIS settings as possible factors. The same error message is received.
 
Most similar errors I have seen on support sites report the user as (null)
or the anonymous account. Can anybody help me figure out why my credentials
are being passed as '\'? Incidentally, the special character \ can not be
google'd, so it may have affected others but I can't find them.

Thanks,
Jason Wood.



Relevant Pages

  • Re: Compiled Web App Unavailable to Some Users
    ... Does the server have an external domain name? ... The problem is that some machines can open my web app and some machines ... The error message I'm getting is "this page cannot be displayed"...I tried ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: File mfcans32.dll needed for Access 97 runtime install ??
    ... I just heard from a sysadmin that there is an error message after installing my Acc97 RT app on a new server. ...
    (comp.databases.ms-access)
  • ASP.NET Authentication
    ... but it won't display the detailed error message remotely. ... log into the server to see a more enlightening message than "Runtime error" ... monitoring file changes" blah, blah, blah. ... This may not have any bearing on the issue, but this app uses CR .NET so I ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Web Part error after Migration to new server
    ... I migrated production databases to a new ... development server (both WSS 2.0 each on a Server 2003 machine with SQL ... the following error message (all web parts are part of the same ... this is WSS SP1 with Hotfix patch. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: SP6 and problems with XML
    ... when I compile my app and upload my DLL to my production app ... >>resides on the app server and is called from an ASP page on a separate ... >>has been in production for months without a hitch. ...
    (microsoft.public.vstudio.development)