ArgumentNull exception when using SFDashboardLayout in blazor server app - Syncfusion.Blazor(19.4.0.55)

Using the following code sample to display a basic Dashboard Layout, and receiving an argument null exception.
I'm building a Blazor server application on .NET 6.0 framework.


    
        
        
    


System.ArgumentNullException: Value cannot be null. (Parameter 'json')

at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)

at Syncfusion.Blazor.Layouts.SfDashboardLayout.Initialize()

at Syncfusion.Blazor.Layouts.SfDashboardLayout.OnAfterScriptRendered()

at Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(Boolean firstRender)

at Syncfusion.Blazor.Layouts.SfDashboardLayout.OnAfterRenderAsync(Boolean firstRender)

at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)


Syncfusion.Blazor version used - 19.4.0.55



1 Reply

IL Indhumathy Loganathan Syncfusion Team March 15, 2022 07:17 AM UTC

Hi Neethu,  
 
Thanks for contacting Syncfusion Support.  
 
We cannot view the shared code example as it appears blank. However, we have prepared a Blazor Server application with a Dashboard Layout component in the specified package version. but we were unable to replicate the issue at our end. We suspect that the reported issue may have occurred due to a missing script reference on your end. Please see below documentation link. 
 
 
We also prepared a sample for your reference. Please see the link below for the sample. 
 
 
If further assistance is required, please update the sample in the following file formats: *.zip, *.rar, *.zipx, or *.7z. It would help us provide a solution promptly. 
 
Regards, 
Indhumathy L 


Loader.
Up arrow icon