PdfViewerServer Error on Mobile

Hi

When opening the site on a desktop browser, it works perfectly.

Whenever I open it on mobile, I get the following error:

VM2094 blazor.server.js:8 Uncaught (in promise) Error: System.NullReferenceException: Object reference not set to an instance of an object.
   at Syncfusion.Blazor.PdfViewerServer.PdfViewerComponent.<>c.<GetPDFInfo>b__4_1(KeyValuePair`2 k)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at Syncfusion.Blazor.PdfViewerServer.PdfViewerComponent.GetPDFInfo(Dictionary`2 obj)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.InvokeSynchronously(JSRuntime jsRuntime, DotNetInvocationInfo& callInfo, IDotNetObjectReference objectReference, String argsJson)
   at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(JSRuntime jsRuntime, DotNetInvocationInfo invocationInfo, String argsJson)
    at Object.endInvokeDotNetFromJS (https://localhost:44360/_framework/blazor.server.js:8:31660)
    at e.<anonymous> (https://localhost:44360/_framework/blazor.server.js:8:103507)
    at https://localhost:44360/_framework/blazor.server.js:1:19202
    at Array.forEach (<anonymous>)
    at e.invokeClientMethod (https://localhost:44360/_framework/blazor.server.js:1:19173)
    at e.processIncomingData (https://localhost:44360/_framework/blazor.server.js:1:17165)
    at e.connection.onreceive (https://localhost:44360/_framework/blazor.server.js:1:10276)
    at WebSocket.i.onmessage (https://localhost:44360/_framework/blazor.server.js:1:38091)



1 Reply

MS Mohan Selvaraj Syncfusion Team July 7, 2020 02:14 PM UTC

Hi Sandro 

We have checked the Blazor PDF Viewer control in Mobile devices with the simple sample. It is displayed correctly. So can you please share the sample or provide more details about the issue. So that would be helpful for us to analysis more and assist you better. 

Regards, 
Mohan S 


Loader.
Up arrow icon