473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Unable to retrieve the user sid from context.

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

Aug 27 '07 #1
3 1995
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
ip*****@gmail.com wrote:
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
Aug 27 '07 #2
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
On Aug 27, 7:04 pm, Steve <lnuxguy_NOMAIL_PLEA...@gmail.comwrote:
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

ipra...@gmail.com wrote:
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- Hide quoted text -

- Show quoted text -

Aug 27 '07 #3
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
ip*****@gmail.com wrote:
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
On Aug 27, 7:04 pm, Steve <lnuxguy_NOMAIL_PLEA...@gmail.comwrote:
>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

ipra...@gmail.com wrote:
>>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- Hide quoted text -
- Show quoted text -

Aug 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chung Leong | last post by:
My contribution to the comp.lang.php FAQ: ------------------------------------------------------------- Q: How do I retrieve a page from a web site? A: Pass a URL to file() or...
5
by: David Rasmussen | last post by:
Some sites seem to be session driven in the sense that if I visit the homepage and do a few clicks I can navigate anywhere I want, but if I paste the current location into a new browser window...
4
by: Chris Bower | last post by:
Reposted from aspnet.buildingcontrols: Ok, I've got a bunch of derived controls that all have a property Rights of type Rights (Rights is an Enumerator). I wrote a custom TypeConverter so that I...
1
by: A Traveler | last post by:
Hello, i am having this problem. The exact error message is: "Unable to generate code for a value of type 'System.Web.UI.Page'. This error occurred while trying to generate the property value for...
3
by: Arjen | last post by:
Hi, I try to get the 'Context.User.Identity.Name' from inside the global.asax in the 'Application_BeginRequest' event. I get this error message: Object reference not set to an instance of an...
0
by: Chris Fink | last post by:
I have walked through all of the WSE 3 Hands on Labs and got everything working fine. When I create my own certificate and install it in the stores, my client application that is consuming my WSE...
6
by: Solje | last post by:
Im developing an ASP.NET application used for maintinance purpose and it may be idle for some ours. The application crash with the error shown below when the user click on some contol in the...
5
by: giandeo | last post by:
Hello Experts. I am unable to retrieve records base on a date. Could you please help me. Here is my code for user to insert a date : <form name="hello" method="post"...
53
by: souporpower | last post by:
Hello All I am trying to activate a link using Jquery. Here is my code; <html> <head> <script type="text/javascript" src="../../resources/js/ jquery-1.2.6.js"</script> <script...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.