Hello,
I'm receiving an error whenever I attempt to load a SfPdfViewerServer component in a deployed environment using Blazor Server-side ASP .NET Core 3.1 on a Windows Server 2012 R2 machine. When I run the same application in a local debug mode the component and viewer are loaded and displayed correctly.
The error I'm receiving is below in the developer tools:
Unexpected token T in JSON at position 0
SyntaxError: Unexpected token T in JSON at position 0
at JSON.parse (<anonymous>)
at t.pdfViewer.serverActionSettings.loadRequestHandler.onSuccess (https://usilg01-isd024:446/_content/Syncfusion.Blazor/scripts/pdfviewer-c79415.min.js:1:1086953)
at t.successHandler (https://usilg01-isd024:446/_content/Syncfusion.Blazor/scripts/pdfviewer-c79415.min.js:1:1264923)
at Object.ioSuccessHandler (https://usilg01-isd024:446/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:201757)
at https://usilg01-isd024:446/_framework/blazor.server.js:8:31421
at new Promise (<anonymous>)
at e.beginInvokeJSFromDotNet (https://usilg01-isd024:446/_framework/blazor.server.js:8:31390)
at https://usilg01-isd024:446/_framework/blazor.server.js:1:19202
at Array.forEach (<anonymous>)
at e.invokeClientMethod (https://usilg01-isd024:446/_framework/blazor.server.js:1:19173)
In doing some searching in the forums, it appears others have had this problem but none of the posted solutions have worked for me. Attached is the application folder for the hosted application. Any ideas?
Attachment:
20200922_160559_a6f36747.zip