为什么我不能把我的DLL添加到Windows 7的GAC中呢?(复制)

时间:2022-09-22 16:04:04

Possible Duplicate:
How to add a dll to gac in vista

可能的副本:如何在vista中添加一个dll到gac。

I have changed my OS to Windows 7 from Windows xp. I am trying to put the DLL in Windows 7 assembly folder but I am unable to do so. I am getting Access Denied error alert.

我把操作系统从Windows xp改成了Windows 7。我想把DLL放到Windows 7汇编文件夹中,但是我做不到。我的访问权限被拒绝了。

Please let me know how to drag and drop a DLL in Windows 7 assembly.

请让我知道如何拖拽一个DLL在Windows 7大会。

1 个解决方案

#1


2  

Have you tried starting Windows Explorer as Administrator?

你试过以管理员的身份启动Windows资源管理器吗?

Even if your user account has admin rights you still need that elevation for such tasks.

即使您的用户帐户拥有管理权限,您仍然需要为这些任务设置高程。

If this doesn't work, I suggest you use gacutil.exe. You also have to open the command prompt as administrator then:

如果不行,我建议你用gacutil.exe。您还必须作为管理员打开命令提示符:

  1. In start menu find the link to the command prompt of your visual studio installation. If this isn't your development machine you need the SDK or just copy gacutil.exe.
  2. 在“开始”菜单中,找到与visual studio安装命令提示符的链接。如果这不是你的开发机器,你需要SDK或者复制gacutil.exe。
  3. Right click the command prompt shortcut and choose "run as administrator".
  4. 右键单击命令提示符快捷方式,选择“作为管理员运行”。
  5. In the command prompt you type gacutil /i "assembly_path". Or type gacutil /? for an explanation how to use it.
  6. 在命令提示符中输入gacutil /i“assembly - path”。或类型gacutil / ?解释如何使用它。

#1


2  

Have you tried starting Windows Explorer as Administrator?

你试过以管理员的身份启动Windows资源管理器吗?

Even if your user account has admin rights you still need that elevation for such tasks.

即使您的用户帐户拥有管理权限,您仍然需要为这些任务设置高程。

If this doesn't work, I suggest you use gacutil.exe. You also have to open the command prompt as administrator then:

如果不行,我建议你用gacutil.exe。您还必须作为管理员打开命令提示符:

  1. In start menu find the link to the command prompt of your visual studio installation. If this isn't your development machine you need the SDK or just copy gacutil.exe.
  2. 在“开始”菜单中,找到与visual studio安装命令提示符的链接。如果这不是你的开发机器,你需要SDK或者复制gacutil.exe。
  3. Right click the command prompt shortcut and choose "run as administrator".
  4. 右键单击命令提示符快捷方式,选择“作为管理员运行”。
  5. In the command prompt you type gacutil /i "assembly_path". Or type gacutil /? for an explanation how to use it.
  6. 在命令提示符中输入gacutil /i“assembly - path”。或类型gacutil / ?解释如何使用它。