I am using .net 9 with 'Blazor web app' template.
I changed namespace for project and then I got the same error message.
It was needed to change 'href' attribute for stylesheet from '@Assets["{project name}.styles.css"]' to '@Assets["{project name with full namespace}.styles.css"]' in App.razor.