Site pages are loaded except Home page in Umbraco 7
When I load the home page from my site, it shows error like as follows,
Server Error in '/' Application.
Multiple types were found that match the controller
named 'Home'. This can happen if the route that services this request
('umbraco/RenderMvc/{action}/{id}') does not specify namespaces to
search for a controller that matches the request. If this is the case,
register this route by calling an overload of the 'MapRoute' method that
takes a 'namespaces' parameter.
The request for 'Home' has found the following matching controllers: MvcApplication1.Controllers.HomeController MyApp.Controllers.HomeController
Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.
Exception Details: System.InvalidOperationException:
Multiple types were found that match the controller named 'Home'. This
can happen if the route that services this request
('umbraco/RenderMvc/{action}/{id}') does not specify namespaces to
search for a controller that matches the request. If this is the case,
register this route by calling an overload of the 'MapRoute' method that
takes a 'namespaces' parameter.
The request for 'Home' has found the following matching controllers: MvcApplication1.Controllers.HomeController MyApp.Controllers.HomeController
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Site pages are loaded except Home page in Umbraco 7
When I load the home page from my site, it shows error like as follows,
Server Error in '/' Application.
Multiple types were found that match the controller named 'Home'. This can happen if the route that services this request ('umbraco/RenderMvc/{action}/{id}') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter.
The request for 'Home' has found the following matching controllers:
MvcApplication1.Controllers.HomeController
MyApp.Controllers.HomeController
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Multiple types were found that match the controller named 'Home'. This can happen if the route that services this request ('umbraco/RenderMvc/{action}/{id}') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter.
The request for 'Home' has found the following matching controllers:
MvcApplication1.Controllers.HomeController
MyApp.Controllers.HomeController
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Remaining pages are working fine....
Hi Thomas
What have customizations have you been doing? Seems like you're perhaps doing some route hijacking?
/Jan
Hi Jan,
I didn't do anything. I got this error 2 hours before. Before that it worked fine. Frankly, I don't know how to do route hijacking..
Hi Jan,
Can u tell me how to do routing to solve this issue ?...I tried but I couldn't solve it....
is working on a reply...