-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.Reflection.AmbiguousMatchException #4
Comments
Hi, could you provide some code so I can reproduce the issue? Thanks! |
Hi, Thanks for your reply. Routes.razor
NotFoundPage.razor
|
Thanks. I'll look into it next week. |
Hello, I think I made a mistake, after further experimentation I discovered that the problem was not from custom components, but from multiple routes.
|
@phidiassj the issue has been resolved in release 1.0.2 |
hello.
I tried using this library in my Blazor 8 hybrid project. I only added the @Attribute [Sitemap] directive to a few pages. There were no errors during compilation and execution, but when I navigate to sitemap.xml, I encounter the following error. I would appreciate any suggestions anyone could provide!
System.Reflection.AmbiguousMatchException: Multiple custom attributes of the same type 'Microsoft.AspNetCore.Components.RouteAttribute' found.
at System.Reflection.CustomAttributeExtensions.GetCustomAttribute[T](MemberInfo element)
at Sidio.Sitemap.Blazor.SitemapMiddleware.CreateSitemap(IComponentBaseProvider componentBaseProvider)
at Sidio.Sitemap.Blazor.SitemapMiddleware.InvokeAsync(HttpContext context)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
The text was updated successfully, but these errors were encountered: