I want to get pdf file from assets but return Some Error? RRS feed

  • Question

  • I have created universal windows 8.1 application and i want to open pdf file in the launcher. when i'm get pdf file from assets ("An exception of type 'System.Exception' occurred in mscorlib.dll but was not handled in user code"). Thanks in advanced.

    I have link of my code please check and tell me where i'm wrong 


    Simple Code

    Tuesday, June 21, 2016 1:17 PM


  • Hi,

    For first change your file path from @"pdf/test.pdf" to @"pdf\test.pdf" then  in your pdf file properties tab set 

    Build Action = Content , and  Copy to Output Directory = Copy if Never 

    Tuesday, June 21, 2016 7:54 PM