| RE: [aus-dotnet] ASP.net credentials |
- From: Glavich, Paul C
- Subject: RE: [aus-dotnet] ASP.net credentials
- Date: Tue, 21 Sep 2004 16:00:22 +1000
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
In your page, you can access the user and password that was used in basic authentication like this :- Page.Request.ServerVariables["AUTH_USER"] Page.Request.ServerVariables["AUTH_PASSWORD"] You can these use these credentials explicitly when adding them to the credential cache. - Paul Glavich -----Original Message----- From: dotnet-owner@xxxxxxxxxxx [mailto:dotnet-owner@xxxxxxxxxxx] On Behalf Of Geoff Appleby Sent: Tuesday, 21 September 2004 2:32 PM To: dotnet@xxxxxxxxxxx Subject: Re: [aus-dotnet] ASP.net credentials here's the error i get :) Server Error in '/SIMTest' Application. ---------------------------------------------------------------------------- ---- Default credentials cannot be supplied for the Basic authentication scheme. Parameter name: authType Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Default credentials cannot be supplied for the Basic authentication scheme. Parameter name: authType Source Error: Line 66: oSim.Credentials = moCache Line 67: moCache.Add(New Uri(oSim.Url), "NTLM", System.Net.CredentialCache.DefaultCredentials) Line 68: moCache.Add(New Uri(oSim.Url), "Basic", System.Net.CredentialCache.DefaultCredentials) Line 69: Line 70: On Tue, 21 Sep 2004 13:31:18 +1000, Glavich, Paul C <paul.glavich@xxxxxxx> wrote: > Whats the exception? Are you sure that impersonation is actually > taking place. Ensure that the Windows Current identity reports the > user you have specified in the credentials. > > - Paul Glavich > > -----Original Message----- > From: dotnet-owner@xxxxxxxxxxx [mailto:dotnet-owner@xxxxxxxxxxx] On > Behalf Of Geoff Appleby > Sent: Tuesday, 21 September 2004 1:02 PM > To: dotnet@xxxxxxxxxxx > Subject: Re: [aus-dotnet] ASP.net credentials > > > So enabling impersonation and using the DefaultCredentials *should* > > work fine. In fact, delegating those credentials (like you are here) > > is much easier using basic. > > It _should_ work, shouldn't it? the framework throws an exception, > however > :) > > -- > Geoff Appleby > http://dotnetjunkies.com/WebLog/fredd/ > _________________ > You are a part of the Australian "dotnet" mailing list. > To unsubscribe send "unsubscribe dotnet" or to re-subscribe send > "subscribe dotnet Your Name" in the body of the email to: > imailsrv@xxxxxxxxxxx List managed by: http://www.stanski.com > > > _________________ > You are a part of the Australian "dotnet" mailing list. > To unsubscribe send "unsubscribe dotnet" or to re-subscribe send > "subscribe dotnet Your Name" in the body of the email to: > imailsrv@xxxxxxxxxxx List managed by: http://www.stanski.com > -- Geoff Appleby http://dotnetjunkies.com/WebLog/fredd/ _________________ You are a part of the Australian "dotnet" mailing list. To unsubscribe send "unsubscribe dotnet" or to re-subscribe send "subscribe dotnet Your Name" in the body of the email to: imailsrv@xxxxxxxxxxx List managed by: http://www.stanski.com _________________ You are a part of the Australian "dotnet" mailing list. To unsubscribe send "unsubscribe dotnet" or to re-subscribe send "subscribe dotnet Your Name" in the body of the email to: imailsrv@xxxxxxxxxxx List managed by: http://www.stanski.com
(Click here for more information on the aus-dotnet mailling list)
- Follow-Ups:
- Re: [aus-dotnet] ASP.net credentials, Geoff Appleby
- Prev by Date: RE: [aus-dotnet] Smartphones
- Next by Date: [aus-dotnet] IsDate function
- Previous by thread: Re: [aus-dotnet] ASP.net credentials
- Next by thread: Re: [aus-dotnet] ASP.net credentials
- Index(es):
