Server Error in '/' Application.

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: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security, State.

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: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security, State.]
   System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate) +458
   System.Diagnostics.EventLog._InternalLogNameFromSourceName(String source, String machineName) +36
   System.Diagnostics.EventLogInternal.GetLogName(String currentMachineName) +125
   System.Diagnostics.EventLogInternal.get_Log() +110
   System.Diagnostics.EventLog.set_Source(String value) +53
   BBR_Website.AppCode.General_Helper.EventLog(String Message, String callingMethod, String callingFilePath, Int32 callingFileLineNumber) in C:\Code\BBR Website 3.2\BBR_Website\AppCode\General_Helper.cs:301
   BBR_Website.AppCode.DB_Helper.validateModelWithActiveProducts(String myModel) in C:\Code\BBR Website 3.2\BBR_Website\AppCode\DB_Helper.cs:1081
   BBR_Website.Products.Products.Page_Load(Object sender, EventArgs e) in C:\Code\BBR Website 3.2\BBR_Website\Products\Products.aspx.cs:185
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9318
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +355
   System.Web.UI.Page.ProcessRequest() +79
   System.Web.UI.Page.ProcessRequest(HttpContext context) +74
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4380.0