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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PDF Viewer could not load files.

Thread ID:





145792 Jul 9,2019 12:03 AM UTC Nov 27,2019 09:50 PM UTC ASP.NET Core - EJ 2 4
Tags: PDF Viewer
Peng Xie
Asked On July 9, 2019 12:03 AM UTC

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.

Ramya Thirugnanam [Syncfusion]
Replied On 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. 

Peng Xie
Replied On July 9, 2019 04:36 PM UTC

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

Peng Xie
Replied On July 9, 2019 04:42 PM UTC

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

Ramya Thirugnanam [Syncfusion]
Replied On 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. 
Ramya T


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon