I'm trying to use the Windows 10 IoT Core C++ Background Application (based on the MSFT IoT templates).
My scenario involves creating a native (C++) Background Application that leverages an existing managed (C#) Runtime Component. I can create such a solution in Visual Studio and it compiles and deploys to an IoT device just fine.
However, when I run the app, I see runtime exceptions like this anytime the managed component is used:
Exception thrown at 0x76C92052 in backgroundTaskHost.exe: Microsoft C++
exception: Platform::ClassNotRegisteredException ^ at memory location
0x02B0F4A8. HRESULT:0x80040154 Class not registered
WinRT information: Class not registered
Stack trace:
[External Code]
backgroundapplicationcpp.dll!BackgroundApplicationCpp::StartupTask::
[Windows::ApplicationModel::Background::IBackgroundTask]::Run
(Windows::ApplicationModel::Background::IBackgroundTaskInstance ^
taskInstance) Line 13
Part of the promise of Windows Runtime is the interop of the languages (C++, C#, JS, VB) ... this scenario works just fine with a standard UWP app in place of an IoT Background Application.
How can this scenario work for Background Applications???