如何在GAC中注册DLL?

发布于 2024-10-06 03:04:03 字数 487 浏览 0 评论 0原文

我正在尝试使用加载 ESRI 的 ArcEngine 的 WindowsFormsHost 安装 C# WPF。

MSI安装程序给出了这个错误:

Unable to install.  The app requires assembly ESRI.ArcGIS.Framework Version 
10.0.0.0 to be installed in the GAC first

我已经安装了ESRI ArcEngine Runtime 10,它应该可以处理这类事情,但我想它并不完美。

在目标计算机上,文件 Framework.dll 位于文件夹:C:\Program Files\ArcGIS\DeveloperKit10.0\DotNet 中,但不在 c:\windows\ assembly 中代码>.

我右键单击程序集,然后单击“注册”进行注册,但这并没有解决我的问题。

I am trying to install a C# WPF with a WindowsFormsHost which loads ESRI's ArcEngine.

The MSI installer gives this error:

Unable to install.  The app requires assembly ESRI.ArcGIS.Framework Version 
10.0.0.0 to be installed in the GAC first

I already installed the ESRI ArcEngine Runtime 10 which is supposed to handle this sort of thing, but I guess it's not perfect.

On the target machine the file framework.dll is in the folder: C:\Program Files\ArcGIS\DeveloperKit10.0\DotNet, but it's not in c:\windows\assembly.

I right clicked on the assembly then clicked register to register but that didn't fix my problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

泛滥成性 2024-10-13 03:04:03

这里有两种方法。

  1. 使用实用程序 gacutil -i

    gactutil -ic:\foldername\ assemblyname.dll

  2. 第二种方法是您可以将 .dll 文件从程序集的 bin 文件夹中拖放到文件夹 C:\%systemroot%\Assembly

Here are two methods.

  1. Using the utility gacutil -i

    gactutil -i c:\foldername\assemblyname.dll

  2. The second method is you can drag the .dll file from the bin folder of the assembly and drop it into the folder C:\%systemroot%\Assembly

穿越时光隧道 2024-10-13 03:04:03

我还没有看过 ArcGIS 10,但我知道以前版本的 ArcGIS 的行为是,如果您在安装 .NET 之前安装了 ArcGIS,则不会安装将 DLL 安装到 GAC 的功能。

I haven't looked at ArcGIS 10 yet but I know previous versions of ArcGIS behaved that if you installed ArcGIS before you installed .NET it wouldn't install the feature that installed the DLL's to the GAC.

仄言 2024-10-13 03:04:03

如果您安装了 SDK,则可以使用 gacutil 命令:

path "%WinDir%\Microsoft.NET\Framework\v1.1.4322";%Path%
gacutil /i "%ProgramFiles%\ArcGIS\DeveloperKit10.0\DotNet\framework.dll"

请注意,您必须是管理员才能更改全局程序集缓存。

If you have the SDK installed, you can use the gacutil command:

path "%WinDir%\Microsoft.NET\Framework\v1.1.4322";%Path%
gacutil /i "%ProgramFiles%\ArcGIS\DeveloperKit10.0\DotNet\framework.dll"

Note that you have to be an Administrator to alter the Global Assembly Cache.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文