Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • P 32 posts 122 karma points
    Apr 05, 2016 @ 08:38
    P
    0

    Rest Api : Controller Error

    Hi everyone,

    I've just installed the UmbracoCms.RestApi package and now I'm getting the following error message in the back-office.

    An error occured
    
    Multiple types were found that match the controller named 'Content'. This can happen if the route that services this request ('umbraco/backoffice/{pluginname}/{controller}/{action}') found multiple controllers defined with the same name but differing namespaces, which is not supported.
    
    The request for 'Content' has found the following matching controllers:
    Umbraco.Web.Editors.ContentController
    Umbraco.RestApi.Controllers.ContentController
    
    EXCEPTION DETAILS
    
    System.InvalidOperationException: Multiple types were found that match the controller named 'Content'. This can happen if the route that services this request ('umbraco/backoffice/{pluginname}/{controller}/{action}') found multiple controllers defined with the same name but differing namespaces, which is not supported.
    
    The request for 'Content' has found the following matching controllers:
    Umbraco.Web.Editors.ContentController
    Umbraco.RestApi.Controllers.ContentController
    

    Does anyone know how to fix this?

    Thanks

    Pete

  • Richard Terris 273 posts 715 karma points
    Apr 05, 2016 @ 09:24
    Richard Terris
    0

    I haven't used this package, but it sounds like a bug to me.

    Both the controllers are accessed via the same Url which is why it's confused. Ordinarily you could just rename one of them, but since they're both Umbraco controllers you can't so I'd raise an issue on the issue tracker.

  • P 32 posts 122 karma points
    Apr 06, 2016 @ 08:39
    P
    0

    Hi Richard,

    Thanks for the info - I'll raise the issue on GitHub.

    Pete

Please Sign in or register to post replies

Write your reply to:

Draft