SecurityException when i try to write to the event

Discussion in 'ASP .Net Security' started by Suhail Salman, Nov 19, 2003.

  1. Dear all,
    why do i get the following exception when i try to write to the event
    log from a webform. and how can i resolve it?

    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.

    i changed the trust level in my computer zone to full trust. but its still
    the same, even though that this exception is thrown from a dll which is
    referenced in the major project.

    thank you for your help.
    suhail
     
    Suhail Salman, Nov 19, 2003
    #1
    1. Advertising

  2. Suhail Salman

    Flare Guest

    > Exception Details: System.Security.SecurityException: Requested registry
    > access is not allowed.
    >
    > i changed the trust level in my computer zone to full trust. but its still
    > the same, even though that this exception is thrown from a dll which is
    > referenced in the major project.


    Its problably the asp worker process wich is not allowed to write to the
    eventlog.

    First of all are your sure it excist? If not try creating it with this
    approach.

    http://msdn.microsoft.com/library/d...temdiagnosticseventloginstallerclasstopic.asp

    Reagards,
    Anders J, Dk
     
    Flare, Nov 19, 2003
    #2
    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. Suhail Salman
    Replies:
    2
    Views:
    4,940
  2. bienwell
    Replies:
    4
    Views:
    3,898
    bienwell
    May 27, 2005
  3. John Salerno
    Replies:
    20
    Views:
    881
    John Salerno
    Aug 11, 2006
  4. Fabio Z Tessitore

    who is simpler? try/except/else or try/except

    Fabio Z Tessitore, Aug 12, 2007, in forum: Python
    Replies:
    5
    Views:
    397
  5. =?Utf-8?B?QUo=?=

    When to TRY and not to TRY

    =?Utf-8?B?QUo=?=, Oct 16, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    345
    sloan
    Oct 17, 2007
Loading...

Share This Page