I am trying to use a Windows Runtime Component in a C++/WinRT Console App. The Component is written in C#, and I added it as a reference in the C++ project.
Everything compiles, but this error is thrown when I call a function of the component, and I can't catch it.
I already cleaned the project, and nothing changed.
Thanks.
Currently only native UWP app to managed UWP component activation is supported. This means if you want to manage c# component from C++/WinRT, you need to create a C++ UWP app(e.g. C++/WinRT UWP app). In that case, you can call the c# component from C++/WinRT UWP app.
User contributions licensed under CC BY-SA 3.0