2

我有 2 个项目的 Visual Studio 2010 解决方案:c# 和 c++

c++ 项目使用 .net 框架库并公开从 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)

内部异常为空

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

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

我该如何解决?

先感谢您!

4

2 回答 2

1

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

于 2010-10-18T12:39:30.363 回答
1

Fusion logger ( guide ) 和dependency walker的组合应该给出答案。

于 2010-10-18T12:46:26.793 回答