View Single Post
  #1 (permalink)  
Old June 6th, 2003, 05:32 AM
kiekar kiekar is offline
Registered User
Join Date: Jun 2003
Location: , , Canada.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems running ThePhile web app


I just recently purchased the book and downloaded the web app.
Each time I try to run the app I get a Security Exception.
Does anybody have an idea how I can correct this. Any help would
be much appreciated.

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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Requested registry access is not allowed.]
   Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473
   System.Diagnostics.EventLog.FindSourceRegistration (String source, String machineName, Boolean readOnly)
   System.Diagnostics.EventLog.SourceExists(String source, String machineName)
   System.Diagnostics.EventLog.SourceExists(String source)
   Wrox.ThePhile.Web.PhilePage.LogEvent(String message, EventLogEntryType entryType) in Q:\Wrox\ThePhile\PhilePage.cs:29
   Wrox.ThePhile.Web.PhilePage.PhilePage_Error(Object sender, EventArgs e) in Q:\Wrox\ThePhile\PhilePage.cs:54
   System.Web.UI.TemplateControl.OnError(EventArgs e)
   System.Web.UI.Page.HandleError(Exception e)
   System.Web.UI.Page.ProcessRequest(HttpContext context)
   System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)