You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Router AppAssembly="@typeof(Program).Assembly"
Found Context="routeData"
RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"
FocusOnNavigate RouteData="@routeData" Selector="h1"
Found
NotFound
PageTitle>Not Found</PageTitle
LayoutView Layout="@typeof(MainLayout)"
p role="alert">Sorry, there's nothing at this address.</p
LayoutView
NotFound
Router
I keep getting these error messages.
Severity Code Description Project File Line Suppression State Details
Error (active) RZ9985 Multiple components use the tag 'RouteView'. Components: Management_Cases.RouteView, Microsoft.AspNetCore.Components.RouteView Management Cases
Severity Code Description Project File Line Suppression State Details
Error (active) CS0103 The name 'routeData' does not exist in the current context
Severity Code Description Project File Line Suppression State Details
Error (active) CS0103 The name 'routeData' does not exist in the current context
I tried everything but the issue persists. Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
We're sorry you are running into this. From the error message, it appears that you may have a RouteView.razor in your project, and the ASP.NET Core you are referencing also seems to have a class of the same name. Does that represent the content of your project? Does renaming that RouteView.razor, or using a qualified path for the @using and component name, get you the desired behavior?
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
I am trying to implement authorization to my project. I have this as part of my configuration in my App.razor
@using Microsoft.AspNetCore.Components.Routing
Router AppAssembly="@typeof(Program).Assembly"
Found Context="routeData"
RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"
FocusOnNavigate RouteData="@routeData" Selector="h1"
Found
NotFound
PageTitle>Not Found</PageTitle
LayoutView Layout="@typeof(MainLayout)"
p role="alert">Sorry, there's nothing at this address.</p
LayoutView
NotFound
Router
I keep getting these error messages.
Severity Code Description Project File Line Suppression State Details
Error (active) RZ9985 Multiple components use the tag 'RouteView'. Components: Management_Cases.RouteView, Microsoft.AspNetCore.Components.RouteView Management Cases
Severity Code Description Project File Line Suppression State Details
Error (active) CS0103 The name 'routeData' does not exist in the current context
Severity Code Description Project File Line Suppression State Details
Error (active) CS0103 The name 'routeData' does not exist in the current context
I tried everything but the issue persists. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: