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
The "Elmah.Mvc" and "Elmah.Mvc.Detail" routes registered in the package's Bootstrap currently run for both RouteDirection.IncomingRequest and RouteDirection.UrlGeneration.
These routes should not be used for url generation!
They are registered without any kind of constraint limiting their applicability and thus can match any url generation request from the ASP.NET MVC application into which the Elmah.Mvc package is installed.
There are real-life scenarios in which Elmah.Mvc registers its routes before the application itself and in those particualr cases, the routes from the package will overtake all of the application's routes, causing url generation to completely break down into nonsense: redirecting everything to a /elmah?<query> url, where <query> is a query string containing all the serialized route values that should've been used to matched against one of the application's own routes.
The text was updated successfully, but these errors were encountered:
Wow... Has it been almost 3 years already without reply?
(Nice...)
Ok then: in the event anyone else runs across this as a problem, and the developers of this package continue to not supply a solution; you can work around it by modifying the routes that the package registers, after the fact:
The
"Elmah.Mvc"
and"Elmah.Mvc.Detail"
routes registered in the package's Bootstrap currently run for bothRouteDirection.IncomingRequest
andRouteDirection.UrlGeneration
.These routes should not be used for url generation!
They are registered without any kind of constraint limiting their applicability and thus can match any url generation request from the ASP.NET MVC application into which the Elmah.Mvc package is installed.
There are real-life scenarios in which Elmah.Mvc registers its routes before the application itself and in those particualr cases, the routes from the package will overtake all of the application's routes, causing url generation to completely break down into nonsense: redirecting everything to a
/elmah?<query>
url, where<query>
is a query string containing all the serialized route values that should've been used to matched against one of the application's own routes.The text was updated successfully, but these errors were encountered: