Dashboard Component doesn't Render on Blazor WASM - 19.4.0.42

Hello,


I am seeing an error output into the console when on a page with a Dashboard component.

The error is:

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Value cannot be null. (Parameter 'json')
System.ArgumentNullException: Value cannot be null. (Parameter 'json')
at System.Text.Json.JsonSerializer.Deserialize[InitialClientModel](String json, JsonSerializerOptions options)
at Syncfusion.Blazor.Layouts.SfDashboardLayout.OnAfterScriptRendered()
at Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.Layouts.SfDashboardLayout.OnAfterRenderAsync(Boolean firstRender)


I am using the default code that was outlined in the Getting Started tutorial:

<SfDashboardLayout>
    <DashboardLayoutPanels>
        <DashboardLayoutPanel>
        </DashboardLayoutPanel>
    </DashboardLayoutPanels>
</SfDashboardLayout>

Notes:

  • Targeting NET6.0
  • Using Syncfusion.Blazor.Layouts version 19.4.0.42

5 Replies

IL Indhumathy Loganathan Syncfusion Team January 18, 2022 02:34 PM UTC

Hi Christopher, 
 
Greetings from Syncfusion support. 
 
We can replicate the reported issue in the Dashboard Layout component in a Blazor WASM sample in.Net 6.0. Since the issue only occurs for the Dashboard Layout component with isolation script enabled, we need to analyse further to identify the root cause of the problem. We will update you with further details within three business days on January 21, 2022.  
 
However, as a suggestion, you can change the service in your Program.cs file as shown below to overcome this issue. 
 
builder.Services.AddSyncfusionBlazor(); 
 
We appreciate your patience. 
 
Regards, 
Indhumathy L 



KR Keerthana Rajendran Syncfusion Team January 22, 2022 11:09 AM UTC

Hi Christopher, 
 
Thanks for your patience. 
 
We have considered the reported issue “Blazor Dashboard Layout component throws error with IgnoreScriptIsolation” as a bug. The fix for this issue will be available in our Volume 4 SP release, which is expected to be released by end of January 2022. You can track the status of your reported problem through the below portal link, 
 
 
We appreciate your patience. 
 
Regards, 
Keerthana R. 



HC Hank Chadwick February 4, 2022 07:52 PM UTC

This problem still persists in version 19.4.0.48 on the DashboardLayout component. However, the workaround works as well. When will the bug fix be released?



Also, what is the impact of removing the following code and replacing

builder.Services.AddSyncfusionBlazor(options =>

{

options.IgnoreScriptIsolation = true;

});

with

builder.Services.AddSyncfusionBlazor( );?


KR Keerthana Rajendran Syncfusion Team February 7, 2022 10:13 AM UTC

Hi Hank, 
 
Based on the level of priority, we are sorry that the issue “Blazor Dashboard Layout component throws error with IgnoreScriptIsolation” isn’t included in the Volume 4 SP release. This fix will be included in the upcoming weekly patch release by this week. 
 
To have a better clarity on the IgnoreScriptIsolation concept, please refer to the following link.  
 
 
Regards, 
Keerthana R. 



IL Indhumathy Loganathan Syncfusion Team February 16, 2022 02:05 PM UTC

Hi Hank, 
  
Thanks for your patience. 
  
We are glad to announce that our patch release (V19.4.52) is rolled out successfully. The issue Blazor Dashboard Layout component throws error with IgnoreScriptIsolation has been resolved in this release. To access this fix, we suggest you update the package to the latest version 19.4.52. 
  
Please refer to the below sample link. 
  
 
  
  
Please let us know if you need any further assistance. 
 
Regards, 
Indhumathy L 


Loader.
Up arrow icon