NotificationService not getting registered

Radzen.NotificationService not getting registered and with the error: There is no registered service of type 'Radzen.NotificationService'.

I am using dotnet 8 and followed the tutorial. I have registered it inside MainLayout.and the program.cs but the problem persists.

This error occurred when I started converting my project that was on dotnet 6 to dotnet 8.

Any help and suggestions on this issue are much appreciated.
Thanks

Hi @Shubhankar_Banerjee,

If you have both a Server and Client project you will have to register the service in both Program.cs files (or disable prerendering).