Visual Studio 2008、Windows 7、GAC 的问题
自周一以来,这个问题一直让我做噩梦。 一切都很顺利,直到我收到了新的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论