Ol1v3r
Ol1v3r

Reputation: 788

System.IO.FileNotFoundException error when Calling WinRT Component in WP 8 (C#)

I have loaded all the DLLs in the project and my code breaks when I want from the WP8 App to create an object that is defined in my WinRT component (that calls other native libraries).

amy I missing something imporant ?

Thanks

Upvotes: 2

Views: 943

Answers (1)

Paul Annetts
Paul Annetts

Reputation: 9604

No definitive answer, just some ideas to try if you haven't already.

Have you got any warnings from the build? In particular you need to watch that the C++/CX namespace and .winmd file name are compatible (see this SO question for details).

Have you tried using the Native Debugger?

  • If so, does it even get to the constructor of your ref class object?
  • Does the text in the Output Window give you any clues as to what is missing?

Open up your .XAP file from the build directory using any ZIP packaging tool (you could for example rename it to .zip and use Windows Explorer) - are all the DLLs you expect packaged up correctly?

Upvotes: 1

Related Questions