Session Security in ASP.Net/VB.Net

Discussion in 'ASP .Net Security' started by Tristan, Oct 14, 2004.

  1. Tristan

    Tristan Guest

    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!
     
    Tristan, Oct 14, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff Smythe
    Replies:
    3
    Views:
    1,255
    Jeff Smythe
    Jan 2, 2004
  2. jnickfl1
    Replies:
    0
    Views:
    594
    jnickfl1
    Sep 18, 2006
  3. Dinis Cruz

    Asp.Net Security Analyser (new security tool by DDPlus)

    Dinis Cruz, Oct 8, 2003, in forum: ASP .Net Security
    Replies:
    2
    Views:
    153
    Dinis Cruz
    Oct 11, 2003
  4. Michael Randrup
    Replies:
    3
    Views:
    307
    Henning Krause [MVP]
    Mar 27, 2006
  5. Kursat
    Replies:
    1
    Views:
    320
    Dominick Baier
    May 7, 2007
Loading...

Share This Page