System.Security.SecurityException: Requested registry access is not allowed.

本文介绍了解决ASP.NET应用程序在尝试向Windows事件日志中写入信息时遇到的安全异常问题的方法。通过修改注册表设置,为应用程序分配适当的权限,以确保其能够成功记录日志条目。
 
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/

*************************************************************************

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值