Getting Exception when Upgrade Syncfusiion.pdf.net.core version 20 to 27.

Hello team i am getting exception when we are upgrade syncfusion.pdf.net.core version 20 to 24. 
exception is getting when we are save stream in document  below and providing exception.

System.ObjectDisposedException: 'Cannot access a closed Stream.

i have attached my code file. please provide solution as soon as posible.

    


Attachment: SyncfusionPdfRenderer_495f2bc7.zip

1 Reply

IJ Irfana Jaffer Sadhik Syncfusion Team January 17, 2025 12:29 PM UTC

Hi Dinesh,

Thank you for sharing the details. Based on the exception information, we found that the issue occurs because the stream is being closed before it is loaded into the PDF document. We kindly request you to ensure that the stream is not closed before loading the PDF document.

Additionally, the provided code is not runnable on our end. As a result, we are unable to create a workable version of the code or replicate the problem. If you continue to face issues after verifying the stream disposal, please provide the following details to help us investigate further:

  1. The complete stack trace of the exception.
  2. A runnable sample that replicates the issue on our end.

This will enable us to identify and address the problem effectively.


Regards,

Irfana J



Loader.
Up arrow icon