We have an EPiServer site on version 7.6 which is setup for Webforms. Now we want to add a MVC Controller, but we get "The controller for path '/Subscription' was not found or does not implement IController."
We have registered a route, and in our latest version we have added the following:
routes.MapRoute("Event Subscriptions", "{controller}/{action}/{id}", new { controller = "Subscription", action = "Index", id = UrlParameter.Optional });
The route overrides all other routes right now, but it only ends up with the error above, and therefor the error page for 404 is displayed.
When we try the same thing in a brand new MVC project (version 9.2) with the Alloy sample it works without problem.
Any ideas what to look for to get this working in our old Webforms project? Anything that must be added in config or code?
We have an EPiServer site on version 7.6 which is setup for Webforms. Now we want to add a MVC Controller, but we get "The controller for path '/Subscription' was not found or does not implement IController."
We have registered a route, and in our latest version we have added the following:
routes.MapRoute("Event Subscriptions", "{controller}/{action}/{id}", new { controller = "Subscription", action = "Index", id = UrlParameter.Optional });
The route overrides all other routes right now, but it only ends up with the error above, and therefor the error page for 404 is displayed.
When we try the same thing in a brand new MVC project (version 9.2) with the Alloy sample it works without problem.
Any ideas what to look for to get this working in our old Webforms project? Anything that must be added in config or code?
Thanks, Eric