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. Image for the cookie policy date

PDF Viewer could not load files.

I have problem by using .Net Core with pdfViewer. In the cshtml.cs file after I imported necessary library, errors generated.
Severity Code Description Project Path File Line Suppression State
Error CA2000 Call System.IDisposable.Dispose on object created by 'new PdfRenderer()' before all references to it are out of scope. 

I download demo pdfViewer file for testing, it could not load file either.

4 Replies

RT Ramya Thirugnanam Syncfusion Team July 9, 2019 08:39 AM UTC

Hi Peng, 
 
Thanks for contacting Syncfusion support. 
 
We were unable to reproduce the reported issue with the details provided in the incident. We have created the simple PDF Viewer sample and shared the same in the following location, 
 
Kindly refer the below link to resolve this kind of error, 
 
Please try this and revert us with the modified sample, more details about your issue and Essential studio version, if you are still facing the issue. These details will be helpful for us to investigate further and assist you better. 
 
Regards, 
Akshaya 



PX Peng Xie July 9, 2019 04:36 PM UTC

Hi,
I am working with .net core with razor page. Do you have sample code for that? 


PX Peng Xie July 9, 2019 04:42 PM UTC

BTW, the one I found on here
Does not work for me.


RT Ramya Thirugnanam Syncfusion Team July 10, 2019 12:15 PM UTC

Hi Peng, 
From the 2019 Volume 2 beta release new annotation features were included in the PDF Viewer but the KB content is not updated, so the error is thrown with the provided code snippet and the sample. Now, we have updated the KB content and the sample. Please find the updated kb link as below. 
Regards,
Ramya T
 


Loader.
Up arrow icon