TypeLoadException When Calling WinRT Component
-
Sunday, April 22, 2012 6:29 PMI have created C++ WinRT component that wraps DirectX. Then, I tried to access from my C# application and it gave me a TypeLoadException.
All Replies
-
Monday, April 23, 2012 8:14 AMModerator
Hello,
Would you please provide us some same codes to reproduce this issue?
You can upload your project to
http://skydrive.live.com/It is not necessary that you send out the whole of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business details from it.
Or you can try the way combing XAML and Direct X in this blog
http://blogs.msdn.com/b/windowsappdev/archive/2012/03/15/combining-xaml-and-directx.aspxBest regards,
JesseJesse Jiang [MSFT]
MSDN Community Support | Feedback to us
-
Friday, April 27, 2012 10:28 PM
Here is my project:
The MetroXna project is the winrt component and MetroXna.Tests is the C# application that throws a TypeLoadException
- Edited by soggy.potato Friday, April 27, 2012 10:29 PM
-
Thursday, July 12, 2012 1:44 PMI think I may be having a similar problem (a Xaml app using a WinRT C# component throws a TypeLoadException that doesn't really make much sense). Was this ever resolved?
-
Thursday, July 12, 2012 1:47 PM
Nevermind. The problem was that I was using a namespace that didn't match the assembly name. That's not legal in WinRT, it seems. Problem solved!!- Marked As Answer by soggy.potato Thursday, July 19, 2012 10:14 PM


