Set access right for the aspnet to write event log
When an aspnet application wants to write some log information into the windows event log, there may be the following error:
System.Security.SecurityException: Requested registry access is not allowed.
In order to correct this problem in rhombus2 we need to follow the following steps:
1. Locate the following registry subkey:
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Application
2. Right-click the Application subkey, point to New, and then click Key.
3. Type Rhombus2 for the key name, NOT for the data.
4. Close Registry Editor.
*************************************************************************
记忆法大全(数百万字文字,共3张音频、视频教学光盘)
http://shop33212326.taobao.com/
*************************************************************************
本文介绍了解决ASP.NET应用程序在尝试向Windows事件日志中写入信息时遇到的安全异常问题的方法。通过修改注册表设置,为应用程序分配适当的权限,以确保其能够成功记录日志条目。

611

被折叠的 条评论
为什么被折叠?



