Can't Get Razden Services (Notification, Dialog, ect) to work


I have followed the Nuget install directions and for some reason I can't seem to get the different services to work for me.

I can confirm I have added the line below to my index.html file.
<script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>

When I debug the program I get all the way to the line below when trying to run the Dialog Service:
await DialogService.OpenAsync( "Title", ds => @html stuff here )

After I step over that line the dialog does not appear. The only thing I can think of is that the project for some reason isn't referencing the Radzen.Blazor.js file.

I do however see the Radzen.Blazor.js in the source files in my browser when I look in the dev tools:

You’ve missed to register the required components in the MainLayout.

I'm sorry, I'm not sure what you mean. I have added the service to the DI container in my program file with the following line:

Is there something I need to do specifically in the MainLayout.razor file?

Check this article: Dialog setup

Thank you so much team. I was adding the <RadzenDialog /> line in the wrong place.

I really appreciate the very fast responses.