Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Session Security in ASP.Net/VB.Net

Reply
Thread Tools

Session Security in ASP.Net/VB.Net

 
 
Tristan
Guest
Posts: n/a
 
      10-14-2004
uhm First time ive encountered this situation. I am getting a Security
Exception when referencing a Session Variable.

Line 54: Dim objCustomer As New Customer
Line 55: 'If Session("uid") > -1 Then
--> Line 56:
objCustomer.LoadCustomterDetails(CInt(Session("UID ")))
Line 57: 'End If
Line 58: lblFirstName.Text = objCustomer.FirstName

This is the Breakpoint where it falls over.

Here is the error:

Description: The application attempted to perform an operation not
allowed by the security policy. To grant this application the required
permission please contact your system administrator or change the
application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Requested
registry access is not allowed.


The session is created when a user Logs into the Web site and thier
Username/password is Validated by a customer Login object. The UID is
returned and assigned to the Session("UID")

In this situation the File that is referencing the session is within a
restricted zone which only keeps out anonymous uses. No roles ahve
been assigned at this stage. Also it is using standard
FormsAuthentication methods.

Any Suggestion Welcome!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Mike Larkin ASP .Net 1 05-23-2005 12:33 PM
Session State - What does it take to establish one single ASP.NET session per "browser session" Jeff Smythe ASP .Net 3 01-02-2004 04:10 AM
How can I "know" the difference between a session timed out and a session that did session.abort? Jazzis ASP General 2 09-23-2003 07:16 AM
IT-Security, Security, e-security COMSOLIT Messmer Computer Support 0 09-05-2003 08:34 AM



Advertisments