|
-
Jan 28th, 2006, 01:12 AM
#1
Thread Starter
Hyperactive Member
Security Problem in EventLog.WriteEntry
hi buddies..
i am facing very small problem . could you guys please tell ne the solution ..
I have written the following code for event Logging. i am getting follwing error , i am not getting what settings to be changed to allow logging.
EventLog.WriteEntry("Registration module","Two dataset generated!!",EventLogEntryType.Error,this.ID);
Security Exception
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|