SfPdfViewerServer.DocumentLoaded causes JS error

See attached example.  The call to onDocumentLoaded() results in a JS error even if I comment out all the code in onDocumentLoaded().  You probably need to remove the EnableToolbar=false from the code which causes another issue.

Regards,

Arthur

-----

blazor.server.js:1 [2021-06-21T03:13:32.211Z] Information: Normalizing '_blazor' to 'https://localhost:44355/_blazor'.

blazor.server.js:1 [2021-06-21T03:13:32.277Z] Information: WebSocket connected to wss://localhost:44355/_blazor?id=Wj_sC4jK0F9KfMGiDbEkAA.

syncfusion-blazor-extended-23e27d.min.js:1 System.NotImplementedException: The method or operation is not implemented.

   at Syncfusion.Blazor.PdfViewer.CustomJsonConverter.WriteJson(JsonWriter writer, Object value, JsonSerializer serializer)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable(JsonWriter writer, JsonConverter converter, Object value, JsonContract contract, JsonContainerContract collectionContract, JsonProperty containerProperty)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)

   at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)

   at Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value, Type objectType)

   at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)

   at Newtonsoft.Json.JsonConvert.SerializeObject(Object value, Type type, JsonSerializerSettings settings)

   at Newtonsoft.Json.JsonConvert.SerializeObject(Object value)

   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)

   at Syncfusion.Blazor.BaseComponent.Trigger(String eventName, String arg)

Error: System.NotImplementedException: The method or operation is not implemented.

   at Syncfusion.Blazor.PdfViewer.CustomJsonConverter.WriteJson(JsonWriter writer, Object value, JsonSerializer serializer)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable(JsonWriter writer, JsonConverter converter, Object value, JsonContract contract, JsonContainerContract collectionContract, JsonProperty containerProperty)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)

   at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)

   at Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value, Type objectType)

   at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)

   at Newtonsoft.Json.JsonConvert.SerializeObject(Object value, Type type, JsonSerializerSettings settings)

   at Newtonsoft.Json.JsonConvert.SerializeObject(Object value)

   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)

   at Syncfusion.Blazor.BaseComponent.Trigger(String eventName, String arg)

    at Object.endInvokeDotNetFromJS (https://localhost:44355/_framework/blazor.server.js:1:70617)

    at e.<anonymous> (https://localhost:44355/_framework/blazor.server.js:10:48412)

    at https://localhost:44355/_framework/blazor.server.js:1:26441

    at Array.forEach (<anonymous>)

    at e.invokeClientMethod (https://localhost:44355/_framework/blazor.server.js:1:26411)

    at e.processIncomingData (https://localhost:44355/_framework/blazor.server.js:1:24222)

    at e.connection.onreceive (https://localhost:44355/_framework/blazor.server.js:1:17307)

    at WebSocket.i.onmessage (https://localhost:44355/_framework/blazor.server.js:1:46783)

throwError @ syncfusion-blazor-extended-23e27d.min.js:1


Attachment: SfPdfViewerBlazorServer20210620_eaa23e23.zip

2 Replies

VS Vasugi Sivajothi Syncfusion Team June 22, 2021 02:14 PM UTC

Hi Arthur, 
  
Thank you for contacting Syncfusion support. 
  
Please find the details. 
  
  
Query 
  
  
Details 
  
See attached example.  The call to onDocumentLoaded() results in a JS error even if I comment out all the code in onDocumentLoaded(). 
  
  
We have logged the reported issue “Exception occurs while invoking the documentLoad event as a defect and the fix will be included in our Volume 2, 2021 release which will be available at the end of June. You can track the status using the below feedback link.  
  
  
  
You probably need to remove the EnableToolbar=false from the code which causes another issue. 
  
  
We have logged the reported issue “Cannot read property 'propertyToolbar' of undefined” as a defect and the fix will be included in our Volume 2, 2021 release which will be available at the end of June. You can track the status using the below feedback link.  
  
  
  
  
  
Regards, 
Vasugi. 



VS Vasugi Sivajothi Syncfusion Team June 30, 2021 06:07 PM UTC

 
Hi Arthur,  
 
We have included the fix for the reported issues in our 2021 Volume 2 Release v19.2.0.44.   
  
  
Please find the feedback links,  
 
  
We are glad to announce that our Essential Studio 2021 Volume 2 release v19.2.0.44 is rolled out and is available for download under the following link. 
  
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
  
Regards,            
Vasugi. 


Loader.
Up arrow icon