We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DashboardLayout Exception with latest release 20.3.0.49

I was having seperate issues identical to


https://www.syncfusion.com/forums/177602/grid-is-not-working-in-dotnet-core-7


So i upgraded to latest release hoping there might be a fix but hit this new error before grid even loads


fail: Microsoft.AspNetCore.Components.Web.ErrorBoundary[0]


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


         at System.Text.Json.ThrowHelper.ThrowArgumentNullException(String parameterName)


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


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


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


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


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


   at System.Text.Json.ThrowHelper.ThrowArgumentNullException(String parameterName)


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


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


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


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


'iAwhi.Client.API.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\7.0.0-rc.1.22427.2\Microsoft.Extensions.Caching.Memory.dll'. Symbol loading disabled by Include/Exclude setting.




'iAwhi.Client.API.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.0-rc.1.22426.10\System.Net.NetworkInformation.dll'. Symbol loading disabled by Include/Exclude setting.


'iAwhi.Client.API.exe' (CoreCLR: clrhost): Loaded 'C:\iAwhi\Source\Client\iAwhi.Client\src\iAwhi.Client.API\bin\Releaseet7.0\Ardalis.EFCore.Extensions.dll'. Symbol loading disabled by Include/Exclude setting.




Unhandled Exception:


System.NullReferenceException: Object reference not set to an instance of an object.


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


   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)


   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()


   at System.Threading.ThreadPoolWorkQueue.Dispatch()


   at System.Threading.ThreadPool.Callback()


ThreadPool Callback threw an unhandled exception of type System.NullReferenceException


I downgraded to 20.3.0.48 and layout seems to work again...apart from original grid serialization issue.



Regards


Kern


5 Replies

PH Phil Holmes October 12, 2022 03:15 AM UTC

I upgraded today, and also got new exception being thrown by page with DashboardLayout, so re-downgraded & new problem gone away. Think there is something new wrong here with 49.




LD LeoLavanya Dhanaraj Syncfusion Team October 12, 2022 03:02 PM UTC

Hi Phil,


Greetings from Syncfusion support.


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


We have validated your reported issue in the Blazor Dashboard Layout component. In our release version 20.1.47, we have included some of the breaking changes. We suspect that the reported issue at your end is occurring due to this. Please check the below release notes for changes.


Release notes link : https://blazor.syncfusion.com/documentation/release-notes/20.1.47?type=all#common


To overcome the issue, add the below script reference.


<script src=https://cdn.syncfusion.com/blazor/20.1.47/syncfusion-blazor.min.js type="text/javascript"></script>


You can install the latest individual NuGet package in your sample and add script and style references and avoid JavaScript isolation to overcome the issue. For your reference, we have attached the sample. Please check the sample and get back to us if you need any further assistance. 


Error issue: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.


We have validated the reported issue in the Blazor Dashboard Layout component and already considered it a bug at our end. The fix for this issue will be included in our weekly patch release on October 26, 2022. You can track the status of the issue fix using the following feedback link.


Feedback linkhttps://www.syncfusion.com/feedback/37960/dashboard-layout-and-pivot-table-crash-if-navigating-away-during-load-render


Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.


We appreciate your patience.


Regards,

Leo Lavanya Dhanaraj



CH Christoph replied to LeoLavanya Dhanaraj October 13, 2022 08:56 PM UTC

Same behavior here.

LeoLavanya, please note that this only happens directly after upgrade of the nuget packages from 20.3.0.48 to 20.3.0.49.

The dashboard works fine on .48 and earlier, but throws the exception mentioned in .49

To my view, this porblem was introduced during fix of #I408693,#I409258according to the release notes of 20.3.49 

Had also to rollback to .48.

Thank you for your support.



LD LeoLavanya Dhanaraj Syncfusion Team October 14, 2022 02:35 PM UTC

Hi Christoph,


We have validated the reported issue in the Blazor Dashboard Layout component with the latest version(V20.2.49) and the mentioned version(V20.3.48). We were able to reproduce the reported issue in both the version. However, we have already considered it a bug at our end. The fix for this issue will be included in our weekly patch release on October 25, 2022. You can track the status of the issue fix using the following feedback link.


Feedback linkhttps://www.syncfusion.com/feedback/37960/dashboard-layout-and-pivot-table-crash-if-navigating-away-during-load-render


Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.


We appreciate your patience.


Regards,

Leo Lavanya Dhanaraj



LD LeoLavanya Dhanaraj Syncfusion Team October 31, 2022 01:56 PM UTC

Hi Phil,


Thanks for your patience.


We are glad to announce that our patch release (V20.3.52) has been rolled out successfully. The fix for the reported issue(Facing NullReference Exception when navigating from DashboardLayout component page to another page) has been resolved in our V20.3.52. To access this fix, we suggest you update the mentioned NuGet packages.


For your reference, we have attached the sample.


Sample:  https://www.syncfusion.com/downloads/support/directtrac/general/ze/DashboardLayoutNavigation-587776691.zip


Feedbackhttps://www.syncfusion.com/feedback/37960/dashboard-layout-and-pivot-table-crash-if-navigating-away-during-load-render


Release Notes: https://blazor.syncfusion.com/documentation/release-notes/20.3.49?type=all#dashboardlayout


Please let us know if you need any further assistance.


Regards,

Leo Lavanya Dhanaraj


Loader.
Live Chat Icon For mobile
Up arrow icon