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.