dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.29k stars 9.96k forks source link

Exception is raised in when setting interactivemode in blazor server authentication type enabled web app project #58222

Open IndrajithSrinivasan opened 1 day ago

IndrajithSrinivasan commented 1 day ago

Is there an existing issue for this?

Describe the bug

Created a Blazor web app project, and added a web component which has client side interactions, so added interactivemode for the dotnet project and the exception is raised in when setting interactivemode in blazor server authentication type enabled in the web app project. Attached the ensured project with this issue thread.

Expected Behavior

No script issue while configuring the renderMode, with and without placing any blazor components in the authentication pages. Login.razor, Register.Razor

Steps To Reproduce

InteractiveServer_auth_application.zip

Exceptions (if any)

.NET Version

dotnet 8.0.108

Anything else?

No response

MackinnonBuck commented 1 day ago

Thanks for reaching out, @IndrajithSrinivasan.

The identity UI pages don't support interactive rendering, per the docs.

@guardrex, maybe we could update this document to include a warning about Identity UI pages themselves not supporting interactivity?