Requested registry access is not allowed 解决办法

当用户在使用 Enterprise Library 的时候,如果是第一次安装使用,其他环境都已经配好,比喻配置文件等等. 当运行的时候,如果出现了 " Requested registry access is not allowed " 错误, 那是因为没有 Rebulid Enterprise library, 请跟如下步骤:

在Enterprise Library的FAQs中可以找到答案,有三种解决办法:
1. 运行安装Enterprise Library时安装的“InstallServices.bat”批处理文件。
2. 运行.NET的installutil程序设置(上面的脚本也是使用installutil命令)。
3. 去掉Common工程中USEWMI、USEEVENTLOG和USEPERFORMANCECOUNTER三个编译参数,重新编译EntLib。
详见:
http://blog.csdn.net/zzgsoft/archive/2006/02/24/608194.aspx

也即:
如果你的Enterprise Library采用的是默认路径安装的话,那么找到如下path: C:\Program Files\Microsoft Enterprise Library June 2005\src\InstallServices.bat, 运行这个.bat文件即可解决此问题.

posted @ 2007-12-23 12:57  谢杰  阅读(5847)  评论(0编辑  收藏  举报