SecurityException when i try to write to the event

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default SecurityException when i try to write to the event

    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 Guest

  2. Similar Questions and Discussions

    1. Help ! - App move to IIS6 - cannot write to event log!
      I've researched like mad and haven't found a real answer to this: I have a large application, classic ASP and VB6 COM objects that has been moved...
    2. Event Log Write Access error.
      I have a web service that runs on Win2003 under an Application Pool with user identity. If that user is a member of Administrators group, then the...
    3. SecurityException on EventLog.CreateEventSource
      Hi All, Can anybody tell me how to write to the application event log with a new source. I'm running the .Net example code but can't get it to...
    4. Custom Event Log Write Error
      We are experiencing the following error when writing to a custom log file: "Requested registry access is not allowed." We have created the custom...
    5. event monitor write to table in V8
      Hi, I'm trying to create an event monitor that writes to tables in a specific tablespace (TEST_TBS) but when I include the IN tablespace clause,...
  3. #2

    Default Re: SecurityException when i try to write to the event

    > 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.

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdiagnosticseventloginstallerclasstopic. asp[/url]

    Reagards,
    Anders J, Dk


    Flare Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139