Unable to load file from Open File

I am using a Mac. I tried to load a PDF file from the Open File in the SfPdfViewerServer component, but I get the "Attempting to reconnect to the server: 1 of 8" and the file does not load. How can I solve this problem?


I have published the program I use on GitHub.

https://github.com/nekojoker/PdfViewerSampleTest


The following is my environment.

- .NET 6.0.400

- Visual Studio for Mac 17.4 Preview


11 Replies

SK Sinthiya Kalimuthu Syncfusion Team August 17, 2022 01:41 PM UTC

Hi Takuya,


We were unable to reproduce the reported issue “Unable to load file from Open File”. You need to add the below mentioned code snippet in programs.cs file to resolve the reported issue. We have shared the documentation link. Kindly try this and revert to us if you have any concerns.


Code Snippet :


builder.Services.AddServerSideBlazor() - instead of this line please use the below highlighted code


builder.Services.AddServerSideBlazor().AddHubOptions(o => { o.MaximumReceiveMessageSize = 102400000; });


Documentation Link - https://blazor.syncfusion.com/documentation/pdfviewer/getting-started/server-side-application


Regards,

Sinthiya K



TA Takuya August 17, 2022 02:05 PM UTC

Thanks for the reply. I added AddHubOptions and the message display is gone, but it is still loading and will not proceed. I uploaded the video below. I have attached a pdf file of the actual test.

https://youtu.be/xDDg5t_MMdo


Attachment: test.pdf_418400fa.zip


SK Sinthiya Kalimuthu Syncfusion Team August 18, 2022 09:34 AM UTC

Hi Takuya,


We have tried to reproduce the reported issue with the document that provided by you. We were unable to reproduce the reported issue “Unable to load file from Open File”. Please share the screenshot of console error details and network tab details while loading the PDF document. This will be helpful to investigate further and provide the solution at the earliest.


Regards,

Sinthiya K



TA Takuya August 18, 2022 11:35 AM UTC

I have looked at the Network tab and don't see any errors, and I don't see any errors in Visual Studio either.

I have tried disabling Chrome extensions and antivirus software but no change.

https://youtu.be/TXu76SR9ypI



SK Sinthiya Kalimuthu Syncfusion Team August 19, 2022 09:05 AM UTC

Hi Takuya,


Kindly share OS and processor details of your mac environment. And share the mac configuration details. This will be helpful to investigate further and provide the solution at the earliest.


Regards,

Sinthiya K



TA Takuya August 19, 2022 02:56 PM UTC

More information about pc is as follows.

macOS Monterey
version 12.3.1
MacBook Air (M1, 2020)
Tip Apple M1
Memory 16GB

Please reply me if you need any other information.



SK Sinthiya Kalimuthu Syncfusion Team August 23, 2022 02:18 AM UTC

Hi Takuya,


We have tried the reported issue with an environment detail as you mentioned. We could not reproduce the reported issue. We have shared the screen recording. Kindly refer it.


Video - https://www.syncfusion.com/downloads/support/directtrac/general/7z/Syncmacn29465_-_TightVNC_Viewer_2022-08-22_18-38-49-1964064172.7z


Regards,

Sinthiya K



TA Takuya August 24, 2022 06:43 AM UTC

Thanks for the confirmation. I do not know the cause of the problem, but it seems that the problem is only in my environment. I was able to display the PDF without any problem on my Windows PC, so I will proceed with the development there.



SK Sinthiya Kalimuthu Syncfusion Team August 25, 2022 12:43 PM UTC

Hi Takuya,


Thank you for the information. If you can reproduce the reported issue in a simple sample on Mac environment in future, kindly revert to us with the issue reproducing sample. So that we can investigate further and resolve the issue.


Regards,

Sinthiya K



TA Takuya August 28, 2022 03:54 AM UTC

I have tried the following additional things, but they have not changed. Please reply if there is anything else I can try. I will provide any information you need.

  • Tried with safari
  • Updated OS to the latest version.
  • Tried older versions of NuGet packages


SK Sinthiya Kalimuthu Syncfusion Team August 29, 2022 09:23 AM UTC

Hi Takuya,


We are marking this thread as solved since we have created a ticket for the reported issue under your account. Please follow up on the ticket for further updates. 


Regards,

Sinthiya K


Loader.
Up arrow icon