狐影九尾狐怎么死的:asp.net 应用程序中的服务器错误。

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 00:31:48
安全性异常
说明: 应用程序试图执行安全策略不允许的操作。要授予此应用程序所需的权限,请与系统管理员联系,或在配置文件中更改该应用程序的信任级别。

异常详细信息: System.Security.SecurityException: 不允许所请求的注册表访问权。

源错误:

行 17:
行 18: // make sure we have an event log
行 19: if (!(EventLog.SourceExists(EVENT_LOG_SOURCE))) {
行 20: EventLog.CreateEventSource(EVENT_LOG_SOURCE, "Application");
行 21: }

源文件: F:\web\ds\Components\Error.cs 行: 19

堆栈跟踪:

[SecurityException: 不允许所请求的注册表访问权。]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473
System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly) +295
System.Diagnostics.EventLog.SourceExists(String source, String machineName) +78
System.Diagnostics.EventLog.SourceExists(String source) +11
digitalshop.Components.Error.Log(String message) in F:\web\ds\Components\Error.cs:19
digitalshop.Components.Product.GetList(String catid) in F:\web\ds\Components\Product.cs:27
digitalshop.Components.Product.GetList(String catid, Int32 currentPage, Int32 pageSize, Int32& numResults) in F:\web\ds\Components\Product.cs:45
digitalshop.Web.Category.BindPagedData() in F:\web\ds\Category.aspx.cs:77
digitalshop.Web.Category.Page_Load(Object sender, EventArgs e) in F:\web\ds\Category.aspx.cs:63
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +2106
System.Web.UI.Page.ProcessRequest() +217
System.Web.UI.Page.ProcessRequest(HttpContext context) +18
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

和您没有关系,这个是您所访问的网站出了问题