SecurityException when i try to write to the event

S

Suhail Salman

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
 
F

Flare

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top