注册DLL出现0x80070005 错误的解决办法

Error 0x80070005 means Access denied. This error can be avoided by starting a command prompt window with Administrator privileges and running regsvr32.exe from there. Click on Start, then go to Accessories and right-click on Command Prompt and click on Run as in the context menu. You must select a user account with Administrator privileges in the window which then appears. When you then run regsvr32.exe from the Command Prompt you won't get the Access denied error.


如果尝试使用 Regsrv32 注册 DLL,而您登录所使用的帐户(例如作为标准用户组成员的帐户)没有管理凭据时,则会出现这种现象。当帐户没有管理凭据时,则不能写入注册表或更改 System32 文件夹中的文件。

出现这种现象的原因是,Windows XP 和 Windows 7 使用了比以前版本的 Windows 限制性更强的安全方案。该方案阻止标准用户注册 DLL。

注意:由于出现这种现象,标准用户可能无法使用其 ID 运行自行注册 DLL 的程序。

使用管理员帐户登陆,然后注册 DLL。

posted @ 2011-09-16 23:18  闲云·野鹤  阅读(16538)  评论(0编辑  收藏  举报