Hi @ravi0092,
Thank you for the additional details.
Doconut does not impose a fixed limit on PDF file size or page count. The practical limit depends on
the server resources, the PDF’s internal complexity, and the number of documents being viewed at the same time.
However, because the first page renders successfully and the following pages fail with a NullReferenceException, we cannot conclude that this is solely a hardware limitation. We are investigating whether the failure is related to the document, the way it is obtained from the URL, the current configuration, or Doconut.NETStandard 25.10.0.
To reproduce and diagnose the issue, please provide:
- The original PDF, or a smaller PDF that reproduces the same behavior.
- The complete exception stack trace, including inner exceptions, and the related application logs.
- The server’s total and available RAM when the error occurs.
- The complete
PdfConfig and DocOptions values used when opening the document.
- The code path used to download the PDF from the URL and pass it to Doconut.
- Confirmation that the fully downloaded PDF opens correctly and all its pages can be accessed in
another PDF application.
As an additional diagnostic test, please download the PDF to a local file and open exactly that file with Doconut. This will help us determine whether the failure occurs while obtaining the document from the URL or while rendering it. Please also tell us whether page 2 fails consistently when it is requested directly.
In the meantime, you may test with CachePages = false and an ImageResolution between 100 and 150 to reduce memory consumption. Please run this test with a single document and a single user. These settings are diagnostic measures and do not yet represent a confirmed resolution.
We also noted that you are using Doconut.NETStandard 25.10.0, which is an older release from the previous Doconut.NETStandard generation. Starting with Doconut.NETStandard 26.8.0, released on August 31, 2026, the package moved from .NET Standard 2.0 to .NET Standard 2.1 and adopted the current Doconut architecture. The current architecture uses dependency-injection-based registration,
asynchronous document sessions, unified middleware and resource delivery, a modular plugin model,
and the distributed publishing path. These changes improve lifecycle management, extensibility, and
multi-node deployment support.
This architecture change is a breaking upgrade rather than a drop-in package update. We recommend
following the .NET Standard migration guide and validating the migration in a staging environment before deploying it to production. The current Doconut.NETStandard release is 26.9.0.
As a maintenance practice, we recommend reviewing and applying Doconut updates monthly, after staging validation, and keeping the core package and all Doconut plugins on the same version. This ensures that the application receives the latest compatibility improvements, rendering fixes, and platform updates. The release notes document each monthly update.
The upgrade recommendation is separate from the current investigation: we will first reproduce the
reported behavior against Doconut.NETStandard 25.10.0 and will provide an update once we identify the cause.