Copied to clipboard

Flag this post as spam?

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


  • Thomas T 66 posts 227 karma points
    Feb 23, 2015 @ 14:14
    Thomas T
    0

    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....

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 23, 2015 @ 14:16
    Jan Skovgaard
    0

    Hi Thomas

    What have customizations have you been doing? Seems like you're perhaps doing some route hijacking?

    /Jan

  • Thomas T 66 posts 227 karma points
    Feb 23, 2015 @ 14:20
    Thomas T
    0

    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..

  • Thomas T 66 posts 227 karma points
    Feb 23, 2015 @ 14:45
    Thomas T
    0

    Hi Jan,

                Can u tell me how to do routing to solve this issue ?...I tried but I couldn't solve it....

Please Sign in or register to post replies

Write your reply to:

Draft