Skip to main content

EndpointRouteBuilderExtension.MapDashboardRoute(Object, String, String, String) Method

Maps the specified URL route and sets a prefix, controller and area names.

Namespace: DevExpress.DashboardAspNetCore

Assembly: DevExpress.Dashboard.v22.1.AspNetCore.dll


public static void MapDashboardRoute(
    dynamic endpointRouteBuilder,
    string routePrefix,
    string controllerName,
    string areaName


Name Type Description
endpointRouteBuilder Object

The collection to add the route to.

routePrefix String

A String value that specifies a route prefix.

controllerName String

A String value that specifies the controller name.

areaName String

A String value that specifies the name of the area to register.


When Web Dashboard is used within areas, you may encounter error messages like The dashboard "" is not found. This message indicates that the ASP.NET MVC Routing is adjusted incorrectly and Web Dashboard requests are sent to the incorrect URL. In this case, use MapDashboardRoute overload with the areaName parameter.

See Also