IJwhost throwing exception in C++/CLI project running .NET 7

34 views Asked by At

I have a Native C++ project which calls --> C++/CLR dll as Bridge --> Calls C# .Net DLL.

During runtime, my native code runs fine, but when I make my first call into the C++/CLR bridge I get the following exception:

enter image description here

Stack trace: enter image description here

According to the modules in the debugger the dll is loaded: enter image description here

Any idea on what could be the issue?

EDIT:

The issue was that I did not copy over the runtimeconfig.json file. So if anyone runs into the same issue. Make sure both the Ijwhost and runtimeconfig.json are copied over to the location of the c++ / CLR dll.

0

There are 0 answers