Security / Login screens not loading

Hi all,

I've added 'Default' ASP security to a Blazor application that I've been developing and am now getting a blank page when loading, with the error message:

System.InvalidOperationException: Cannot provide a value for property 'Security' on type 'Project.Shared.MainLayout. . There is no registered service of type 'Project.SecurityService'.

I've done this before with other applications and it's all worked perfectly, so not sure what's different with this application.

Any help will be gratefully received!

Thanks!

Check if you have something in your application ignore list - for example Startup.cs.

I did have Startup.cs in my ignore list!

Removed it and all working fine now - many thanks!