New (fresh) Application does not build in RBS

I created various applications in RBS with scaffolding using a MSSQL Database. Recently I created a new appliction, but chose "Blazor Server Application" by mistake. After deleting the project folder, I chose the correct one, but now I can't open the designer. Instead it shows an "Application does not build" error.

The error output shows mulitple lines of this error:

Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Components_Pages_EditObjekte_razor.g.cs(205,324): error CS0426: The Type name "Models" does not exist in the type "Arbeitsschein".

I translated the last sentence from german. Don't know if it is translated correctly. "Arbeitsschein" is the name of my project. And of course the application does not run.

I get this error now with every project that I created with RBS in the past.

I tried to reinstall RBS 1.24.1 and 1.23 with no avail.

Hi @dignida,

This error could happen if the application name is the same as the database name. Is this the case? Try changing the application name.

Thank you, that was it. The application name matches the database name.