Adding reference in Windows Store app - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1
  • 2

TOPIC: Adding reference in Windows Store app

Adding reference in Windows Store app 1 year 5 months ago #12517

  • dargod
  • dargod's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Hi all,
I'm trying to add library into my existing projects but I'm getting error in OnLaunched() in first line where PDFGlobal is called.

An exception of type 'System.TypeLoadException' occurred in abc.exe but was not handled in user code

Additional information: Requested Windows Runtime type 'RDPDFLib.pdf.PDFGlobal' is not registered.

I added full RDPDFLib project into my solution but also same happens with winmd

Can anyone help with this one?

Screenshot attached
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by dargod.

Adding reference in Windows Store app 1 year 5 months ago #12522

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
Make sure to add RDPDFLIb.dll and RDPDFLIb.winmd for x86, x64 and arm.

what version of Visual Studio you are using?

Please Log in or Create an account to join the conversation.

Adding reference in Windows Store app 1 year 5 months ago #12524

  • dargod
  • dargod's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
I'm using VS 2015 with Update 3 for this project.
I added full VC++ project to my solution and referenced in in main project so not sure why I should add dll's.
Thanks!

Please Log in or Create an account to join the conversation.

Adding reference in Windows Store app 1 year 5 months ago #12525

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
Can you please send us a sample project that can be used to reproduce your issue?

Please Log in or Create an account to join the conversation.

Adding reference in Windows Store app 1 year 5 months ago #12527

  • dargod
  • dargod's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Sure. Have a look on sample project below:

www.dropbox.com/s/x8jxpr45kyrzvtm/DocViewer.zip?dl=0

Please Log in or Create an account to join the conversation.

Adding reference in Windows Store app 1 year 5 months ago #12531

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
We have checked your sample project, it was missing the lib directory.
After adding it, we was able to build and run correctly the project.

You can find Your project with lib integrated here http://own.mobiles.it/index.php/s/bR3X7lHevEJkSVA

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum