New to Telerik Reporting? Download free 30-day trial

System.ArgumentException A route named X is already in the route collection.

Environment

Product Progress® Telerik® Reporting
Project Type ASP.NET MVC

Description

The following error occurs at the following line:

Telerik.Reporting.Services.WebApi.ReportsControllerConfiguration.RegisterRoutes(config); 

Error Message

System.ArgumentException: 'A route named 'X' is already in the route collection. Route names must be unique.
Parameter name: name' 

Cause/Possible Causes

The most common reasons are renaming the project files or having duplicate using of Telerik.Reporting.Services.WebApi.ReportsControllerConfiguration.RegisterRoutes(config).

Solution

  1. In case of experiencing the issue locally

  2. In case of publishing the application to Azure environment

    • On the Visual Studio publish screen go to Settings
    • Expand File Publish Options
    • Tick the 'Remove additional files at destination' checkbox.

    For more information, check Azure deployment: A route named 'HelpPage_Default' is already in the route collection. Route names must be unique. Parameter name: name stackoverflow thread.

In this article