SfPdfViewerServer Error when deployed to Windows Server 2012 R2

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

4 Replies 1 reply marked as answer

AA Akshaya Arivoli Syncfusion Team September 23, 2020 01:29 PM UTC

Hi Daniel ,    

Thank you for contacting Syncfusion support.  

We are currently creating the environment with the provided details to reproduce the issue. We will update you with further details on September 25, 2020  

Regards,    
Akshaya    




AA Akshaya Arivoli Syncfusion Team September 26, 2020 07:11 AM UTC

Hi Daniel , 

We have tried to reproduce the reported issue with the provided environment details. But we were unable to reproduce the issue. Can you please provide more details about your issue and the sample in which you are facing the issue. These details will be helpful for us to investigate further and assist you better. 

Also, based on the provided details we suspect that the write access permission is denied which might the cause of the issue. We have embedded the Pdfium rendering engine in our PDF Viewer for robust rendering, so Pdfium dll will be generated on runtime within your project location.  We can resolve this by providing the write permission to your project location so that it will allow to create the pdfium dll in your project location during run time.   
 
Please try it and revert us if any concerns on this. 

Regards, 
Akshaya  



Marked as answer

DB Daniel Brewer October 1, 2020 04:45 PM UTC

Updating the user permissions on the account that's running IIS to include the write access has fixed the problem.

Thanks for the help!


AA Akshaya Arivoli Syncfusion Team October 2, 2020 06:17 AM UTC

Hi Daniel, 
 
Thank you for your update. We are glad to know that the reported issue is resolved. Please revert us if you need further assistance in feature. 
 
Regards,  
Akshaya   


Loader.
Up arrow icon