Groups | Blog | Home
all groups > asp.net security > august 2007 >

asp.net security : Unable to retrieve the user sid from context


ipramod NO[at]SPAM gmail.com
8/27/2007 5:18:24 AM
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
Dominick Baier
8/28/2007 12:05:26 PM
what snippet - where do you execute that??


-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

[quoted text, click to view]

AddThis Social Bookmark Button