程序集 Microsoft.Xna.Framework.dll 未加载

发布于 2024-08-27 06:05:00 字数 443 浏览 7 评论 0原文

当尝试从任何项目加载 Microsoft.Xna.Framework.dll 时,它会引发 FileNotFoundException。找不到指定的模块。 (HRESULT 异常:0x8007007E),没有内部异常。

即使像下面这样的简单代码也会引发该异常:

static void Main(string[] args)
{
 Assembly.LoadFile(@"C:\Microsoft.Xna.Framework.dll");
}

我运行 XP x64,但我已将配置管理器中的平台设置为 x86,因为我知道它不应该(不)在 x64 或任何 CPU 上工作。 我已经手动将dll文件添加到GAC中,但这并没有解决问题。我还尝试了 M$ 程序集绑定日志查看器来查看这些日志是否有任何有用的信息,但它们没有。据他们说,一切,装载等,都是成功的。

有什么建议吗?请?

When trying to load Microsoft.Xna.Framework.dll from any project, it throws a FileNotFoundException. The specified module could not be found. (Exception from HRESULT: 0x8007007E), with no innerException.

Even the simple code like the following throws that exception:

static void Main(string[] args)
{
 Assembly.LoadFile(@"C:\Microsoft.Xna.Framework.dll");
}

I run XP x64, but I've set the platform in the configuration manager to x86, because I know it shouldn't(doesn't) work on x64 or Any CPU.
I've manually added the dll file to GAC, but that didn't solve the problem. I have also tried the M$ Assembly Binding Log Viewer to see if those logs had any useful information, but they didn't. Everything, the loading etc, was a success according to them.

Any suggestions? please?

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

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

发布评论

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

评论(2

旧伤还要旧人安 2024-09-03 06:05:00

谢谢您的回复。

对于我的目的,版本 1.1 就足够了,但我应该提到我已经重新安装了很多:我已经尝试了以下版本的框架:1.1、2.0、3.0 和 3.5,并且我将它们与匹配的 XNA Game studio 结合起来版本,我尝试了一些不匹配的组合,但都抛出了相同的异常。是的,它涉及最终用户机器的 XNA Redistributable。

Thank you for the response.

For my purposes version 1.1 suffices, but I should have mentioned that I've reinstalled quite a bit: I've tried the following versions of the framework: 1.1, 2.0, 3.0 and 3.5 and I have combined them with the matching XNA Game studio versions and I've tried some non-matching combinations, but all threw the same exception. And yes, it concerns the XNA Redistributable for the end user's machine.

长亭外,古道边 2024-09-03 06:05:00

这是在您的开发机器上,还是在您尝试运行游戏的另一台机器上?

明显的问题是,您是否安装了最新版本的 XNA Game Studio?如果是,您使用的是哪个版本的 Visual Studio?您尝试重新安装吗?

如果这是在最终用户的计算机上,您是否安装了 XNA Framework Redistributable?

Is this on your development machine, or on another machine that you're trying to get the game to run?

The obvious questions are, did you install the latest version of XNA Game Studio? if so, what version of visual studio are you using? did you try to reinstall?

If this is on an end user's machine, did you install the XNA Framework Redistributable?

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