We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Exception during the adding SfPdfViewer to an empty project

Thread ID:

Created:

Updated:

Platform:

Replies:

126164 Sep 28,2016 04:39 AM May 9,2018 07:40 AM UWP 3
loading
Tags: SfPdfViewer
Flikkema
Asked On September 28, 2016 04:39 AM

Hi!

I'm trying to add you SfPdfViewer control to an empty UWP project. I've added links to Syncfusion.SfPdfViewer.UWP and Syncfusion.Pdf.UWP (btw from which location is correct to take these dlls??). Here is the code of my page:

 <Grid>
     <syncfusion:SfPdfViewerControl Name="pdfViewer" />
 </Grid>

But during the execution of InitializeComponent method I get an exception:

"WinRT information. Cannot locate resource from ms-appx:///Syncfusion.SfPdfViewer.UWP/Implementation/UI/PdfFlipView.xaml. Line: 11 Position 53".

Please help me. What am I doing wrong? And how to achieve simple goal - to add SfPdfViewer control into a page?

Thanks in advance!

Flikkema
Replied On September 28, 2016 04:46 AM

Already fixed that, sorry.

My error was in path to that dlls. I changed it to

C:\Program Files (x86)\Syncfusion\Essential Studio\14.2.0.26\Assemblies for Universal Windows\10.0

And it works. Maybe for someone it'll be helpfull

Xavier Antony
Replied On May 9, 2018 03:27 AM

Yes. Your post helped me to come out the same issue. Thank you.

Navaneetha Kannan Sudalai Muthu [Syncfusion]
Replied On May 9, 2018 07:40 AM

Hi,  

Thank you for the updates. We are glad that the issue has been resolved.  

We suspect that at first you have referred the assemblies from a different location which contained only the dll files Syncfusion.SfPdfViewer.UWP.dll and Syncfusion.Pdf.UWP.dll. But for the proper working of UWP assemblies the necessary resource files have to be in parallel with the dll files in the same folder no matter where the dlls are located.  

The installed location of Essential Studio you have mentioned has those resource files parallel to the dlls. That is why the issue was resolved.  

If you are copying the dlls from the installed location and placing them somewhere else, the necessary resource files also have to be copied. Please find the screenshot below.  

 

Best, 
Navaneetha Kannan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;