Replies: 4 comments
-
Looks like it removed my code examples when I submitted the issue. I can provide it somehow. Basically I'm using both the CascadingAuthenticationState and the AuthorizeRouteView in my new config |
Beta Was this translation helpful? Give feedback.
-
Hi, This seems to be a general Blazor issue and not related to this library. Please create an issue in the dotnet/aspnetcore repo. PS, your code is in the post. You just needed to put 3 ` at the start and end to mark it as a code block |
Beta Was this translation helpful? Give feedback.
-
Ps2 I think you just need to remove the HeadOutlet. It should not be in the router file. |
Beta Was this translation helpful? Give feedback.
-
That did fix it! Thank you so much. So much for AI coding. LOL The AI assistance I was using put that in there. AI has a ways to go. Thank you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Guys I'm putting security into my Asp.Net Core 9.0 Blazor FluentUI Aspire web app and I'm getting an error launching the web app after I configure the Routes.razor for security support. I'm going to give you the actual error and then the before file that works and the after file that breaks. As far as I can see I've got everything setup as it should be. Any help and/or ideas very much appreciated. I'm still deep diving a few books to see if anything will help. Thanks everyone!
Error: InvalidOperationException: There is already a subscriber to the content with the given section ID 'System.Object'. (Microsoft.AspNetCore.Components.Sections.SectionRegistry.Subscribe(object identifier, SectionOutlet subscriber).
Before Routes.razor config that works:
New Routes.razor config that causes the error:
Beta Was this translation helpful? Give feedback.
All reactions