C#、C++项目组合:无法加载文件或程序集
我有 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Fusion 记录器(指南)和dependency walker 应该给出答案。
A combination of Fusion logger (guide) and dependency walker should give the answer.
尝试使用 fuslogvw.exe获取程序集绑定的完整详细信息。
Try to use fuslogvw.exe to get the full details for assembly binds.