Unable to retrieve the user sid from context.

  • Thread starter Thread starter ipramod
  • Start date Start date
I

ipramod

Hi,

I have a code snippet C# when executed gives the following exception
on IE.

___________________________________________________________________
Unable to retrieve the user sid from context. This is typically caused
by the context not yet being set.

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.Exception: Unable to retrieve the user sid
from context. This is typically caused by the context not yet being
set.
_____________________________________________________________________

Why this exception is raised?

Thanks in adv.,
PI
 
Can you please post the code snippet, and give any details about how
your authentication is configured?


Steve C.
MCSD,MCAD,MCSE,MCP+I,CNE,CNA,CCNA
 
I am using a third party control and I have created a simple web
application. I dont have any new code which is used for security
purpose.

Regards.
PI
 
It sounds like the user isn't authenticated in any way before the sid
check is made. If the 3rd party control is causing this error, it may be
that Windows authentication is needed, or that *some* authentication is
expected before this control runs. I would contact the control's author
for support.


Steve C.
MCSD,MCAD,MCSE,MCP+I,CNE,CNA,CCNA
 
Back
Top