C#、C++项目组合:无法加载文件或程序集

发布于 2024-09-27 18:16:46 字数 579 浏览 0 评论 0原文

我有 2 个项目的 Visual Studio 2010 解决方案:

使用 .net 框架库的 c# 和 c++ c++ 项目,并公开从 c# 项目引用的类。

一切都编译得很好,c# 项目智能帮助我处理从 c++ 公开的方法。但是当我尝试启动 c# 项目时,它崩溃并出现异常:

Could not load file or assembly 'c++library.dll' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

内部异常为 null

我尝试从命令行使用 tdump 来查看库依赖项,但它以行结束:

关键部分: 错误:0x42213f 处的内部错误,基址为 0x400000

我该如何修复该问题?

先感谢您!

I have Visual Studio 2010 solution of 2 projects: c# and c++

c++ project using .net framework libraries and exposes class that is referenced from c# project.

Everything compiles fine and c# project intellisence helps me with methods exposed from c++. But when I try to launch c# project it crashes with exception:

Could not load file or assembly 'c++library.dll' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

Inner exception is null

I tried to use tdump from command line to see library dependencies but it finishes with line:

Key to section:
ERROR: internal error at 0x42213f with base 0x400000

How can I fix that?

Thank you in advance!

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

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

发布评论

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

评论(2

臻嫒无言 2024-10-04 18:16:46

Fusion 记录器(指南)和dependency walker 应该给出答案。

A combination of Fusion logger (guide) and dependency walker should give the answer.

掩饰不了的爱 2024-10-04 18:16:46

尝试使用 fuslogvw.exe获取程序集绑定的完整详细信息。

Try to use fuslogvw.exe to get the full details for assembly binds.

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