无法将 linqpad.exe 添加到全局缓存

发布于 2024-09-27 07:44:09 字数 452 浏览 0 评论 0 原文

我正在尝试通过 NoRM 添加 MongoDb Linqpad 驱动程序。我按照 http://normlinqpaddriver.codeplex.com/ 中的说明进行操作 但是我无法添加它。

我得到以下

C:\Program Files\LinQPad>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\gacutil.ex e /i LINQPAd.exe

Microsoft (R) .NET 全局程序集缓存实用程序。版本1.1.4318.0 版权所有 (C) Microsoft Corporation 1998-2002。版权所有。

将程序集添加到缓存失败:未知错误

我正在运行 linqpad v 2.26.2

i am trying to add MongoDb Linqpad Driver via NoRM. I am following instructions as in http://normlinqpaddriver.codeplex.com/
however i cannot add it.

i get the following

C:\Program Files\LinQPad>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\gacutil.ex
e /i LINQPAd.exe

Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4318.0
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Failure adding assembly to the cache: Unknown Error

i am running linqpad v 2.26.2

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

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

发布评论

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

评论(1

夢归不見 2024-10-04 07:44:09

您将遇到 .NET 版本问题,您使用的 LinqPad 版本 2.26.2 适用于 .NET 3.5,而 MongoDb LinqPad 驱动程序使用 4.0。


我看到的其他潜在问题: 您正在使用 2003 提供的 gacutil?您需要至少使用 2008 附带的那个

。打开 Visual Studio 命令提示符 2008,您应该看到类似以下内容:

C:\Program Files\Microsoft Visual Studio 9.0\VC>gacutil
Microsoft (R) .NET 全局程序集缓存实用程序。版本3.5.21022.8
版权所有 (c) Microsoft Corporation。保留所有权利。


升级到 4.0 后,您需要使用位于以下位置的 gacutil:

C:\Program File
s\Microsoft SDKs\Windows\v7.0A\bin

You are going to have .NET version issues, the LinqPad verision 2.26.2 you are using is for .NET 3.5 and the MongoDb LinqPad Driver uses 4.0.


Other potential issues I see: You are using the gacutil that was provided with 2003? You need to be using at least the one that came with 2008.

Open up a Visual Studio command prompt 2008 and you should something like see..

C:\Program Files\Microsoft Visual Studio 9.0\VC>gacutil
Microsoft (R) .NET Global Assembly Cache Utility. Version 3.5.21022.8
Copyright (c) Microsoft Corporation. All rights reserved.


Once you move to 4.0 you need to use the gacutil that is in:

C:\Program File
s\Microsoft SDKs\Windows\v7.0A\bin

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