ASP.NET 32位机器编译现在尝试在64位机器上运行

发布于 2024-08-30 15:26:59 字数 252 浏览 2 评论 0原文

我有一个在 32 位计算机上编译的 ASP.NET 应用程序。引用了许多不同的程序集。我使用 ILDASM 打开网站的主 dll 并查看 .corflags。它说这是ILONLY。但是,当我在 64 位计算机(Windows XP Pro 64 位)上本地运行该网站时,我得到“不是有效的 Win32 应用程序”。既然应用程序是用“AnyCPU”编译的,那么它不应该作为 64 位运行吗?我怎样才能让它发挥作用?我正在使用.NET 3.5。我希望应用程序以 64 位运行,而不是 32 位。

I have an ASP.NET app that was compiled on a 32-bit machine. There are many different assemblies that are referenced. I opened the web site's main dll with ILDASM and looked at the .corflags. It stated it was ILONLY. However, when I run the web site locally on the 64-bit machine (Windows XP Pro 64-bit), I get "is not a valid Win32 applciation". Shouldn't the app run as 64-bit since it was compiled with "AnyCPU"? How can I get this to work? I am using .NET 3.5. I want the app to run as 64-bit, not 32-bit.

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

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

发布评论

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

评论(1

流心雨 2024-09-06 15:26:59

可能您的某些 dll 未编译为 AnyCPU。

使用 sysinternals 中的 进程监视器 找到它并修复/更改它。

通过进程监视器,您可以看到无法加载 dll 的位置。

您还可以在找到一些有问题的 dll 后使用 dependencyWalker 来查看有关该 dll 的更多信息未加载。

希望这有帮助。

Probably some of your dlls are not compiled as AnyCPU.

Use the Process Monitor from sysinternals to locate it and fix it / change it.

With the Process monitor you can see where its fail to load a dll.

Also you can use the dependencyWalker after you locate some of your problematic dll, to see more info on the dll that are not loaded.

Hope this help.

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