CascadingValue in Routes throws Exception

Team - 

Adding a CascadingValue at the top of the Routes component causes Syncfusion to throw  an exception at runtime. The site will not even startup.

The control is irrelevant. I selected a random control.

I've attached a repro of the issue. Though all I did was add Syncfusion, add the CascadingValue and run it.

The CascadingValue is added at the top to manage state for the app.


Attachment: SyncfusionTest_194c8afc.zip

2 Replies

AK Arun Kumar Ragu Syncfusion Team December 20, 2024 03:35 AM UTC

Hi Tony Basallo,


We have resolved the issue and provided a custom patch with the changes below. However, we still need to validate further as the modifications were made at the initial step of initialization of our component. If any additional changes are required, we will share them with you. Otherwise, we will perform complete testing and include this fix in our upcoming volume release. In the meantime, you can use this custom patch. If you face any issues, please let us know.

 

Custom Patch Link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/CustomPatch-1418783069  


Additionally, we have logged the bug feedback for better follow-up. You can comment in that if you have any concerns/queries.

Feedback link : https://www.syncfusion.com/feedback/64153/need-to-provide-a-constructor-based-dependency-injection-support-while-using


Regards,

Arun Kumar R




AK Arun Kumar Ragu Syncfusion Team March 26, 2025 01:32 PM UTC

Hi Tony Basallo,


Thanks for your patience. We have resolved the 'Constructor based dependency injection when using NET 9' issue in our 2025 Volume 1 Main Release (v29.1.33).

Feedback: https://www.syncfusion.com/feedback/64153/need-to-provide-a-constructor-based-dependency-injection-support-while-using

Release notes: https://blazor.syncfusion.com/documentation/release-notes/29.1.33?type=all#breaking-changes

The problem occurred due to changes in .NET 9’s dependency injection mechanism, which affected the way builder.Services.AddSyncfusionBlazor() registered services.

Also, we are glad to announce that our Essential Studio® 2025 Volume 1 Main Release v29.1.33 is rolled out and is available for download under the following link.

Essential Studio® 2025 Volume 1 Main Release v29.1.33 is available for download | Announcements Forums | Syncfusion®


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,

Arun Kumar R


Loader.
Up arrow icon