Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1
  • 2

TOPIC:

Adding reference in Windows Store app 6 years 9 months ago #12517

  • dargod
  • dargod's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 6 years 9 months ago #12522

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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 6 years 9 months ago #12524

  • dargod
  • dargod's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 6 years 9 months ago #12525

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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 6 years 9 months ago #12527

  • dargod
  • dargod's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 6 years 9 months ago #12531

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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 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