Thank you very much..After I have comment them out the 22 errors disappeared:) but when I run the application I get the error:
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.
Source Error:
Line 27: protected void LogEvent(string message, EventLogEntryType entryType)
Line 28: {
Line 29: if (!EventLog.SourceExists("ThePhile.COM"))
Line 30: {
Line 31: EventLog.CreateEventSource("ThePhile.COM", "Application");
Source File: d:\nabeel\mybooksfiles\wrox\wrox\thephile\philepag e.cs Line: 29
May you help me again to solve this problem?.
|