Visual Studio 2008、Windows 7、GAC 的问题

发布于 2024-10-20 00:00:45 字数 714 浏览 0 评论 0原文

自周一以来,这个问题一直让我做噩梦。 一切都很顺利,直到我收到了新的 Windows 7 64 位电脑。 由于我们的应用程序基本上运行在32位机器上。我将所有项目重新编译为 x86(之前在我的旧 32 位机器中将其配置为任何 CPU)。

此外,我们的应用程序中有许多强命名的程序集,新编译的 dll 已安装在 GAC 中。到目前为止,一切都很好。我的所有项目都编译成功。

当我运行我的应用程序时,问题就开始了。 Visual Studio 2008 无法加载 GAC 中的强命名程序集。它向我闪现出一条消息,指出我的项目中引用的程序集与 GAC 中存在的程序集不符。我检查了所有内容,两个程序集都有相同的公钥和版本号。

当我在 64 位机器上搜索 GAC 中的 dll 时,我遇到了 GAC_32 和 GAC_UTIL 目录结构,这让我陷入了更多的困惑。我现在所知道的是,我有一台超快的机器,我无法在上面运行我的应用程序。

**

OS Name Microsoft Windows 7 Professional
Version 6.1.7600 Build 7600
Processor   Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz, 3000 Mhz, 2 Core(s), 2 Logical Processor(s)

**

请帮忙!

The issue has been giving me nightmares since Monday.
Everything was going fine till i received my new Windows 7 64-bit PC.
Since our application is basically run on 32-bit machines. I recompiled all my projects as x86 (earlier this was configured as Any CPU in my old 32-bit machine).

Also we have many strong named assemblies in our application, the newly compiled dlls were installed in the GAC. So far so good. All my projects compiled successfully.

The problem started when i ran my application. The Visual Studio 2008 was not able to load
the strong named assemblies which were in the GAC. It flashed me a message saying that the assembly referred in my project does not conform to the one present in the GAC. I checked everything, both the assemblies have the same public key and the version number.

And when i google about using dlls in the GAC in the 64bit machines, i come across GAC_32 and GAC_UTIL directory structures which has led me into more confusion. All i know now is that i have a super fast machine i cannot run my application on it.

**

OS Name Microsoft Windows 7 Professional
Version 6.1.7600 Build 7600
Processor   Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz, 3000 Mhz, 2 Core(s), 2 Logical Processor(s)

**

Please help !!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文