- Created a Blazor WebAssembly 3.2.0 Preview 3 application template using Individual User Accounts and the ASP.NET Core hosted parameter
- At this point, everything starts up correctly and the standard Blazor application is displayed.
- Added scaffold Registration and Login pages
- The application starts without errors, but the display template stops working and a message appears the message “An unhandled error has occurred".
Asked
Active
Viewed 2,059 times
0

Dima ddk
- 3
- 2
1 Answers
1
From this github issue
The Identity scaffolder adds a wwwroot folder to the Server project with the default set of styles and other assets for the default Identity UI. These styles then override the styles that come from the Client project. In particular, both the Client and Server projects end up with a css/site.css.
You have the following two options:
Change the name of
site.css
of wwwroot folder in Blazor Server project.Remove the wwwroot folder in Blazor Server project.

Xueli Chen
- 11,987
- 3
- 25
- 36