XLocalizer
XLocalizer copied to clipboard
AmbiguousMatchException: The request matched multiple endpoints
Originally posted by @Malkawi1 in https://github.com/LazZiya/XLocalizer/issues/2#issuecomment-1328900840
hi sir,
how to edit this code ->
// add culture route segment for controllers e.g. /en/Home/Index .AddMvcOptions(ops => ops.Conventions.Insert(0, new RouteTemplateModelConventionMvc()))
because make this error:
An unhandled exception occurred while processing the request. AmbiguousMatchException: The request matched multiple endpoints. Matches:
Microsoft.AspNetCore.OData.Routing.Controllers.MetadataController.GetServiceDocument (Microsoft.AspNetCore.OData) Microsoft.AspNetCore.OData.Routing.Controllers.MetadataController.GetMetadata (Microsoft.AspNetCore.OData) Link.Controllers.GroupsController.ConfirmEmail (Link) Link.Controllers.HomeController.Error (Link) Link.Controllers.HomeController.ChatBot (Link) Link.Controllers.HomeController.Index (Link) Link.Controllers.GroupsController.SendRequest (Link) Link.Controllers.CommentsController.Index (Link) Link.Controllers.GroupsController.Create (Link) Link.Controllers.GroupsController.Details (Link) Link.Controllers.GroupsController.Groups (Link) Link.Controllers.GroupsController.Index (Link) Link.Controllers.CommentsController.Hashtag (Link) Link.Areas.Admin.Controllers.HomeController.Index (Link) Link.Controllers.GroupsController.Edit (Link) Link.Controllers.PeopleController.Index (Link)
Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.ReportAmbiguity(CandidateState[] candidateState)
_Originally posted by @Malkawi1 in https://github.com/LazZiya/XLocalizer/issues/2#issuecomment-1328900840_