A
Andy
I am new to .NET so not sure if this is the right process... Any help
will be greatly appreciated.
I am trying to eliminate the grey login box that pops up when Windows
Authentication is used by using Forms Authentication and using the
details provided to impersonate that user and supply the credentials
to the HTTPContext.Current.User
I have tried to use the sample code supplied by Microsoft but realised
that I get an error (listed below) when I call impersonate method.
Error message indicates Access denied.
I am using Windows XP and I am using an active account but still
encounter the problem.
I have tried several suggestions posted on over the web unsuccessfully
so any help will be greatly appreciated.
Thanks in Advance,
Andy
-------------------ERROR---------------------------------------
Impersonation failure.
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.Web.HttpException: Impersonation failure.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Impersonation failure.]
System.Web.ImpersonationSuspendContext.GetCurrentToken() +215
System.Web.ImpersonationSuspendContext.Suspend() +53
System.Web.HttpContext.GetConfig(String name) +104
System.Web.Configuration.HttpCapabilitiesBase.GetConfigCapabilities(String
configKey, HttpRequest request)
System.Web.HttpRequest.get_Browser()
System.Web.UI.Page.CreateHtmlTextWriterInternal(TextWriter tw,
HttpRequest request)
System.Web.UI.Page.CreateHtmlTextWriter(TextWriter tw)
System.Web.UI.Page.ProcessRequestMain()
will be greatly appreciated.
I am trying to eliminate the grey login box that pops up when Windows
Authentication is used by using Forms Authentication and using the
details provided to impersonate that user and supply the credentials
to the HTTPContext.Current.User
I have tried to use the sample code supplied by Microsoft but realised
that I get an error (listed below) when I call impersonate method.
Error message indicates Access denied.
I am using Windows XP and I am using an active account but still
encounter the problem.
I have tried several suggestions posted on over the web unsuccessfully
so any help will be greatly appreciated.
Thanks in Advance,
Andy
-------------------ERROR---------------------------------------
Impersonation failure.
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.Web.HttpException: Impersonation failure.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Impersonation failure.]
System.Web.ImpersonationSuspendContext.GetCurrentToken() +215
System.Web.ImpersonationSuspendContext.Suspend() +53
System.Web.HttpContext.GetConfig(String name) +104
System.Web.Configuration.HttpCapabilitiesBase.GetConfigCapabilities(String
configKey, HttpRequest request)
System.Web.HttpRequest.get_Browser()
System.Web.UI.Page.CreateHtmlTextWriterInternal(TextWriter tw,
HttpRequest request)
System.Web.UI.Page.CreateHtmlTextWriter(TextWriter tw)
System.Web.UI.Page.ProcessRequestMain()