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
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
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.
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
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.
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
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.
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.
Regards,
Sinthiya K
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.
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
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.
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