SfToast Unable to set property 'TimeOut' on object of type Syncfusion.Blazor.Notifications.SfToast

I am getting this error when using a component from the Razor Component Library into ASP.NET Core project while rendering.
     Error: System.InvalidOperationException: Unable to set property 'TimeOut' on object of type 'Syncfusion.Blazor.Notifications.SfToast'. The error was: Unable to cast object of type 'System.Double' to type 'System.Int32'.
when I use this component within the ASP.NET Core Blazor project it works fine.
Given below is the code sample and how it is being used.

And rendering this like

As you can see exception is on type that cannot convert double to int
I am using syncfusion.blazor version 18.0.1.48

1 Reply

IS Indrajith Srinivasan Syncfusion Team June 3, 2021 11:28 AM UTC

Hi Jameel, 
 
Greetings from Syncfusion report, 
 
We have validated your reported query. We have tried to reproduce the reported issue with the SfToast in the specified version 18.1.48, but we are unable to reproduce the reported issue from our end. We have also shared the ensured sample from our end  which is prepared using the shared code blocks. 
 
 
We suspect the reported issue occurs due to the local nuget cache, maintained in the browser. So, could you please clear the NuGet cache in your machine once and check your application?  
  
 
 
In addition to the reported issue, we have introduced breaking changes with the property name of the SfToast from our Nuget version 18.3.35, If you are using any higher version’s you may face the reported issue. Can you please upgrade your package to this version and check the reported issue ? 
 
 
Please let us know if you face any difficulties, 
 
Regards, 
Indrajith 


Loader.
Up arrow icon