I get an error when generating PDF using Screen To PDF, i will attach the error stack from my service center, the installation is fresh and the most recent version usedThis is the error stack :[1] Failed to create connection at ssUltimatePDF_Service.RssExtensionUltimatePDF_Service.MssPrintPDFExt(HeContext heContext, String inParamURL, String inParamHost, String inParamTemporaryFolder, String inParamProduct, String inParamRevision, IRecord inParamViewport, IRecord inParamEnvironment, RecordList inParamCookies, IRecord inParamPaper, Boolean inParamFromPublicService, Int32 inParamTimeoutSeconds, Byte[]& outParamPDF) at ssUltimatePDF_Service.Actions.ActionPrintPDF_Execute(HeContext heContext, String inParamURL, String inParamHost, String inParamTemporaryFolder, String inParamProduct, String inParamRevision, Boolean inParamAllowRevisionDownload, STViewportStructure inParamViewport, STEnvironmentStructure inParamEnvironment, RLCookieList inParamCookies, STPaperStructure inParamPaper, Boolean inParamFromPublicService, Int32 inParamTimeoutSeconds, Byte[]& outParamPDF) at ssUltimatePDF_Service.ServiceAPIController.Flows.ActionPrintPDF(HeContext heContext, String inParamURL, String inParamHost, String inParamTemporaryFolder, String inParamProduct, String inParamRevision, Boolean inParamAllowRevisionDownload, STViewportStructure inParamViewport, STEnvironmentStructure inParamEnvironment, RLCookieList inParamCookies, STPaperStructure inParamPaper, Boolean inParamFromPublicService, Int32 inParamTimeoutSeconds, Boolean inParamCaptureLogs, Byte[]& outParamPDF, Byte[]& outParamLogsZipFile) at ssUltimatePDF_Service.ServiceAPIController.ServiceAPIPrintPDF()[2] Method not found: 'Void System.Text.Json.JsonSerializerOptions.set_DefaultIgnoreCondition(System.Text.Json.Serialization.JsonIgnoreCondition)'. at PuppeteerSharp.Helpers.Json.JsonHelper.<>c.<.cctor>b__5_0() at System.Lazy`1.CreateValue()--- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Lazy`1.get_Value() at PuppeteerSharp.Cdp.Connection.GetMessage(Int32 id, String method, Object args, String sessionId) in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Cdp/Connection.cs:line 171 at PuppeteerSharp.Cdp.Connection.<SendAsync>d__53.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Cdp/Connection.cs:line 122--- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at PuppeteerSharp.Cdp.CdpBrowser.<CloseCoreAsync>d__24.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Cdp/CdpBrowser.cs:line 325--- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at PuppeteerSharp.Cdp.CdpBrowser.<CreateAsync>d__18.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Cdp/CdpBrowser.cs:line 187--- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at PuppeteerSharp.Launcher.<LaunchAsync>d__8.MoveNext() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Launcher.cs:line 86
The error in Ultimate PDF (O11) is a compatibility issue with PuppeteerSharp (used internally for PDF rendering) clashing with the .NET runtime's System.Text.Json version.
This hits on newer Platform Server updates where Json APIs changed, but the bundled PuppeteerSharp expects an older signature.
Fixes or workaround:
1. Update Ultimate PDF — Grab the latest version from Forge (v15+ as of 2025 fixes many Puppeteer/Json mismatches)
2. If still broken after update:
- Republish the app.
- As fallback, switch to AdvancedHtmlToPDF (Xebia) or WeePDF — both avoid Puppeteer quirks.
Thanks for the answer, Bhanu, appreciate it
I think so too when i tried to force update it on NuGet it still not working, like you said it expects an older signature when checking the version from Ultimate PDF Management still v4.7 not v8, i already update Ultimate PDF to the latest version (v15+) even do clean install, delete the Ultimate PDF and install still it doesn't work.
Option 2 is nice, but since this is used by a client and they have many app depend on UltimatePDF breaking will be inevitable, any workaround regarding this ?Best Regards,Hengki