Credentials being lost between servers - out of ideas!

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Credentials being lost between servers - out of ideas!

    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.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
    System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
    methodName, Object[] parameters)
    PayrollWebApps.com.kenonic.webkc.Service1.RebuildS hiftOTCodes() 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.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument)
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
    sourceControl, String eventArgument)
    System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection 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.
    Jason Wood Guest

  2. Similar Questions and Discussions

    1. Frontend Web Servers connect to Coldfusion Servers
      I need some help getting a front end web server cluster (iis) talking with the backend colfusion app cluster (j2ee install). Do I have to install...
    2. vpn credentials
      we have a c# windows application that grabs a users netowork credentails. we now need to allow users to run the application over VPN (on non domain...
    3. .NET IIS to IIS credentials problem...
      Hi, I'm writing this off the top of my head as I don't have the exact information to hand. We are attempting to set up a secure internet site...
    4. Remote Fax/Credentials
      I am trying to use one fax modem on a networked computer in Windows XP. The help instructs to set up the fax printer that is on the server as a...
    5. Peferred Credentials on OEM
      You might check the permissions. "James" <james.varga@mindsweep.net> wrote in message news:v1obpjjkrko966@corp.supernews.com... have...
  3. #2

    Default RE: Credentials being lost between servers - out of ideas!

    Update: There is another variable. The production instance now reports the
    same error, even though it was working previously. The code has not changed
    in that time. Any hints where to start looking?

    "Jason Wood" wrote:
    > 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.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
    > System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
    > methodName, Object[] parameters)
    > PayrollWebApps.com.kenonic.webkc.Service1.RebuildS hiftOTCodes() 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.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument)
    > System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
    > sourceControl, String eventArgument)
    > System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection 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.
    Jason Wood Guest

  4. #3

    Default Re: Credentials being lost between servers - out of ideas!

    If I understand this correctly, you have a asp.net web application which is
    using a webervice proxy to talk to a webservice on another machine. You have
    set the webservice to authenticate using Windows auth, and it is SSL
    encrypted as well. You mentioned that when you run your app on the same
    machine as the webservice, it works. And it fails if run from a different
    machine.

    Can you provide some details here:

    1) You have setup the webservice to impersonate using windows auth. Is it
    impersonating the authenticated user who is sending the request ? Or is it
    impersonating a specific user on the machine.

    2) Can you hit the webservice using IE from another machine ?

    --
    feroze

    -----------------
    This posting is provided as-is. It offers no warranties and assigns no
    rights.

    See [url]http://weblogs.asp.net/feroze_daud[/url] for System.Net related posts.
    ----------------

    "Jason Wood" <JasonWood@discussions.microsoft.com> wrote in message
    news:4A87F2F6-22CD-4B38-BB8C-0AB89DE868EB@microsoft.com...
    > Update: There is another variable. The production instance now reports the
    > same error, even though it was working previously. The code has not
    changed
    > in that time. Any hints where to start looking?
    >
    > "Jason Wood" wrote:
    >
    > > 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.SoapHttpClientProtoc ol.ReadResponse(SoapClient
    Message message, WebResponse response, Stream responseStream, Boolean
    asyncCall)
    > > System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
    > > methodName, Object[] parameters)
    > > PayrollWebApps.com.kenonic.webkc.Service1.RebuildS hiftOTCodes() 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.IPo stBackEventHandler.RaisePo
    stBackEvent(String eventArgument)
    > > System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
    > > sourceControl, String eventArgument)
    > > System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection 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.

    Feroze [msft] Guest

  5. #4

    Default Re: Credentials being lost between servers - out of ideas!

    Thanks Feroze. In getting the information to answer your questions, I got
    more organized in my testing. The behaviours now appear to exactly match the
    "double-hop" credentials issue. I think my best solution is to wait a few
    weeks until AD is implemented here.

    Regards,
    Jason

    "Feroze [msft]" wrote:
    > If I understand this correctly, you have a asp.net web application which is
    > using a webervice proxy to talk to a webservice on another machine. You have
    > set the webservice to authenticate using Windows auth, and it is SSL
    > encrypted as well. You mentioned that when you run your app on the same
    > machine as the webservice, it works. And it fails if run from a different
    > machine.
    >
    > Can you provide some details here:
    >
    > 1) You have setup the webservice to impersonate using windows auth. Is it
    > impersonating the authenticated user who is sending the request ? Or is it
    > impersonating a specific user on the machine.
    >
    > 2) Can you hit the webservice using IE from another machine ?
    >
    > --
    > feroze
    >
    > -----------------
    > This posting is provided as-is. It offers no warranties and assigns no
    > rights.
    >
    > See [url]http://weblogs.asp.net/feroze_daud[/url] for System.Net related posts.
    > ----------------
    >
    > "Jason Wood" <JasonWood@discussions.microsoft.com> wrote in message
    > news:4A87F2F6-22CD-4B38-BB8C-0AB89DE868EB@microsoft.com...
    > > Update: There is another variable. The production instance now reports the
    > > same error, even though it was working previously. The code has not
    > changed
    > > in that time. Any hints where to start looking?
    > >
    > > "Jason Wood" wrote:
    > >
    > > > 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.SoapHttpClientProtoc ol.ReadResponse(SoapClient
    > Message message, WebResponse response, Stream responseStream, Boolean
    > asyncCall)
    > > > System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
    > > > methodName, Object[] parameters)
    > > > PayrollWebApps.com.kenonic.webkc.Service1.RebuildS hiftOTCodes() 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.IPo stBackEventHandler.RaisePo
    > stBackEvent(String eventArgument)
    > > > System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
    > > > sourceControl, String eventArgument)
    > > > System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection 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.
    >
    >
    >
    Jason Wood Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139