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
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.
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.
Does anyone know how to fix this?
Thanks
Pete
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.
Hi Richard,
Thanks for the info - I'll raise the issue on GitHub.
Pete
is working on a reply...