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

services.AddSyncfusionBlazor error CS0121 when create a WinForms Blazor App.

When I try to create a WinForms Blazor App,I got error CS0121 because this line :

services.AddSyncfusionBlazor(options => { options.IgnoreScriptIsolation = true; });


2023-04-02_21-41-29.jpg


error CS0121: The call is ambiguous between the following methods or properties: 'Syncfusion.Blazor.SyncfusionBlazor.AddSyncfusionBlazor(Microsoft.Extensions.DependencyInjection.IServiceCollection, System.Action)' and 'Syncfusion.Blazor.SyncfusionBlazor.AddSyncfusionBlazor(Microsoft.Extensions.DependencyInjection.IServiceCollection, System.Action)'


Attachment: WinFormsApp1_c35309bd.zip


3 Replies

SI Silambarasan I Syncfusion Team April 4, 2023 01:47 PM UTC

Hi,

The reported issue occurred due to installing both `Syncfusion.Blazor` (single) and individual Syncfusion NuGets. So, we suggest you use either single NuGet or individual Syncfusion NuGets to resolve this issue.

https://blazor.syncfusion.com/documentation/common/how-to/troubleshoot#compile-time-errors

https://blazor.syncfusion.com/documentation/nuget-packages

Regards,
Silambarasan Ilango



GZ gzthomax@gmail.com April 5, 2023 02:17 AM UTC

Hi,Silambarasan 

It's worked according to your suggestion. Thanks.



BH BharatRam Harikrishnan Syncfusion Team April 5, 2023 08:43 AM UTC

Hi,


Thanks for the update. Please get back to us if you need any further assistance.


Regards,

Bharat Ram H



Loader.
Live Chat Icon For mobile
Up arrow icon