This is a migrated thread and some comments may be shown as answers.

Error registering Reports Controller routes

4 Answers 331 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 13 Nov 2014, 06:50 PM
I am receiving a System.NotSupportedException of "Adding or removing items from a 'HttpRouteCollection' is not supported. Please use a key when adding and removing items." when my application hits the ReportsControllerConfiguration.RegisterRoutes() method. 

Thank you for assistance in advance.

4 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 17 Nov 2014, 10:12 AM
Hello Chris,
Please check if you have all settings from the How To: Add Telerik Reporting REST Web API to Web Application help article. The routes we register for the Reporting REST WebAPI service are listed in the How to change the registered by default Telerik Reporting REST Web API routes KB article.


If you need further help, please elaborate on your project's settings and routes configuration.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ray
Top achievements
Rank 1
answered on 28 Jan 2015, 01:51 AM
The real fix for this issue is to make sure that you have installed the WebAPI 2.2 Nuget package into the project. Build. All should be OK.
0
Carli
Top achievements
Rank 1
answered on 16 Jul 2015, 06:17 PM

I am receiving the same error. I have verified all the settings according to the How To article. I have also verified the WebAPI 2.2 Nuget package is installed. I am using the 5.2.3 version of the package. I also added the following to the web config as instructed when using a higher version than specified in the article.

<dependentAssembly>
        <assemblyIdentity name="System.Web.Http" culture="neutral" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="5.2.3"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http.Formatting" culture="neutral" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="5.2.3"/>
      </dependentAssembly>​

 Any help is greatly appreciated.

 

Thanks

 

0
Stef
Telerik team
answered on 20 Jul 2015, 02:44 PM
Hello Carli,

Please check if the Reporting REST service is configured correctly and responds on call for formats in browser -  How To: Add Telerik Reporting REST Web API to Web Application, and verify there are no duplicating routes registered in the Global.asax.

If the issue still occurs, please check the status and responses of requests via Fiddler, and open a support ticket with a demo project illustrating the problem and the details from Fiddler.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Stef
Telerik team
Ray
Top achievements
Rank 1
Carli
Top achievements
Rank 1
Share this question
or