Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

"The controller for path was not found" in a mixed Webforms/MVC site

Vote:
 

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

#142273
Dec 08, 2015 12:00
Vote:
 

Could you check if this is the same issue?

#142332
Dec 09, 2015 12:07
Vote:
 

We ended up upgrading the Epi-site to version 9.6 instead. Thanks!

#147694
Apr 21, 2016 13:54
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.