TypeLoadException When Calling WinRT Component
-
Sonntag, 22. April 2012 18:29I have created C++ WinRT component that wraps DirectX. Then, I tried to access from my C# application and it gave me a TypeLoadException.
Alle Antworten
-
Montag, 23. April 2012 08:14Moderator
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
-
Freitag, 27. April 2012 22:28
Here is my project:
The MetroXna project is the winrt component and MetroXna.Tests is the C# application that throws a TypeLoadException
- Bearbeitet soggy.potato Freitag, 27. April 2012 22:29
-
Donnerstag, 12. Juli 2012 13:44I 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?
-
Donnerstag, 12. Juli 2012 13:47
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!!- Als Antwort markiert soggy.potato Donnerstag, 19. Juli 2012 22:14

