头痛的问题,请大家帮忙看一下
“/hotop100oa”应用程序中的服务器错误。
--------------------------------------------------------------------------------
安全性异常
说明: 应用程序试图执行安全策略不允许的操作。要授予此应用程序所需的权限,请与系统管理员联系,或在配置文件中更改该应用程序的信任级别。
异常详细信息: System.Security.SecurityException: 不允许所请求的注册表访问权。
源错误:
行 261: if (!EventLog.SourceExists("hotop100"))
行 262: {
行 263: EventLog.CreateEventSource("hotop100", "Application");
行 264: }
行 265: //将错误日志信息写入Windows事件日志中
源文件: C:\Inetpub\wwwroot\qminoa\Webs\PageBase.cs 行: 263
堆栈跟踪:
[SecurityException: 不允许所请求的注册表访问权。]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473
System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName, Boolean useMutex)
System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName)
System.Diagnostics.EventLog.CreateEventSource(String source, String logName)
qminoa.Webs.PageBase.LogEvent(String message, EventLogEntryType entryType) in C:\Inetpub\wwwroot\qminoa\Webs\PageBase.cs:263
qminoa.Webs.PageBase.PageBase_Error(Object sender, EventArgs e) in C:\Inetpub\wwwroot\qminoa\Webs\PageBase.cs:286
System.Web.UI.TemplateControl.OnError(EventArgs e)
System.Web.UI.Page.HandleError(Exception e)
System.Web.UI.Page.ProcessRequestMain()
System.Web.UI.Page.ProcessRequest()
System.Web.UI.Page.ProcessRequest(HttpContext context)
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
问题点数:20、回复次数:10Top
1 楼cliff1002(挑战,并快乐着! )回复于 2005-08-15 16:46:57 得分 8
权限有问题。
解决办法:
1、确认是管理员帐户登陆。
2、确认程序文件夹有读、写、执行的权限。Top
2 楼zhuyunping(我是新手...无知)回复于 2005-08-15 16:51:41 得分 0
在哪看这些权限呀,在SQL中???Top
3 楼zhuyunping(我是新手...无知)回复于 2005-08-15 16:53:35 得分 0
程序文件夹有读、写、执行的权限没问题Top
4 楼wuzhouhome(伍洲)回复于 2005-08-15 16:55:35 得分 2
权限问题,确认有写的权限。Top
5 楼zhuyunping(我是新手...无知)回复于 2005-08-15 17:00:31 得分 0
所有的权限都是开发的Top
6 楼zhuyunping(我是新手...无知)回复于 2005-08-15 17:34:54 得分 0
有没有人在呀!!!!Top
7 楼zhuyunping(我是新手...无知)回复于 2005-08-15 17:35:33 得分 0
“/hotop100oa”应用程序中的服务器错误。
--------------------------------------------------------------------------------
安全性异常
说明: 应用程序试图执行安全策略不允许的操作。要授予此应用程序所需的权限,请与系统管理员联系,或在配置文件中更改该应用程序的信任级别。
异常详细信息: System.Security.SecurityException: 不允许所请求的注册表访问权。
源错误:
行 261: if (!EventLog.SourceExists("hotop100"))
行 262: {
行 263: EventLog.CreateEventSource("hotop100", "Application");
行 264: }
行 265: //将错误日志信息写入Windows事件日志中
源文件: C:\Inetpub\wwwroot\qminoa\Webs\PageBase.cs 行: 263
堆栈跟踪:
[SecurityException: 不允许所请求的注册表访问权。]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473
System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName, Boolean useMutex)
System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName)
System.Diagnostics.EventLog.CreateEventSource(String source, String logName)
qminoa.Webs.PageBase.LogEvent(String message, EventLogEntryType entryType) in C:\Inetpub\wwwroot\qminoa\Webs\PageBase.cs:263
qminoa.Webs.PageBase.PageBase_Error(Object sender, EventArgs e) in C:\Inetpub\wwwroot\qminoa\Webs\PageBase.cs:286
System.Web.UI.TemplateControl.OnError(EventArgs e)
System.Web.UI.Page.HandleError(Exception e)
System.Web.UI.Page.ProcessRequestMain()
System.Web.UI.Page.ProcessRequest()
System.Web.UI.Page.ProcessRequest(HttpContext context)
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573Top
8 楼luoxia001(低首浅唱的温柔,颠倒众生。回眸一笑的灿烂,日月无光。)回复于 2005-08-15 18:02:56 得分 10
把ASPNET那个用户加到所操作的文件夹的完全控制权限用户组里Top
9 楼zhuyunping(我是新手...无知)回复于 2005-08-16 11:22:05 得分 0
是在SQL中添加吗Top
10 楼zhuyunping(我是新手...无知)回复于 2005-08-16 13:22:38 得分 0
我不会......
请详细一点好吗
Top




