Error registering Reports Controller routes

5 posts, 0 answers
  1. Chris
    Chris avatar
    7 posts
    Member since:
    Mar 2014

    Posted 13 Nov 2014 Link to this post

    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.
  2. Stef
    Admin
    Stef avatar
    3042 posts

    Posted 17 Nov 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Ray
    Ray avatar
    1 posts
    Member since:
    Mar 2012

    Posted 27 Jan 2015 in reply to Stef Link to this post

    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.
  5. Carli
    Carli avatar
    1 posts
    Member since:
    Oct 2014

    Posted 16 Jul 2015 Link to this post

    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

     

  6. Stef
    Admin
    Stef avatar
    3042 posts

    Posted 20 Jul 2015 Link to this post

    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
Back to Top
DevCraft banner