PDF VIEWER WASM HOSTED - ERROR ONLY DEPLOY PRODUCTION

Hi syncfusion team,

We are having a problem in Wasm Hosted blazor pdfviewer, only in production.

The pdf does not load and you can see this message in the console:

The type i"... is not valid JSON

SyntaxError: Unexpected token 'T', "The type i"... is not valid JSON



version net core 5.0.17

version syncfusion 19.4.0.56

Windows Server 2019

Please help solve the problem.

Thanks.


1 Reply

SK Sinthiya Kalimuthu Syncfusion Team August 29, 2022 10:16 AM UTC

Hi Marcelo,


We have already resolved an issue similar to the reported one, in the latest NuGet. Kindly upgrade NuGet package and the script version to latest version to get the reported issue resolved. These versions must be same. Kindly try upgrading and get back to us if the issue still exists.


Package:

Blazor Client   

https://www.nuget.org/packages/Syncfusion.Blazor.PdfViewer/

Blazor Sever  

https://www.nuget.org/packages/Syncfusion.Blazor.PdfViewerServer.Windows  


CDN:

https://cdn.syncfusion.com/blazor/20.2.45/styles/bootstrap5.css

https://cdn.syncfusion.com/blazor/20.2.45/syncfusion-blazor-pdfviewer.min.js



Regards,

Sinthiya K


Loader.
Up arrow icon