C#, C++ project mix: Could not load file or assembly

1

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!

c#
c++
compilation
cross-language
asked on Stack Overflow Oct 18, 2010 by Andrew Florko

2 Answers

1

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

answered on Stack Overflow Oct 18, 2010 by oleveau
1

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

answered on Stack Overflow Oct 18, 2010 by Justin

User contributions licensed under CC BY-SA 3.0