Note that there are some explanatory texts on larger screens.

plurals
  1. POThe controller for path was not found or does not implement IController
    primarykey
    data
    text
    <p>I have an MVC4 project with language selection:</p> <ul> <li>en</li> <li>nl</li> <li>fr</li> <li>de</li> </ul> <p>1 main part with:</p> <ul> <li>About</li> <li>Common (for the menu)</li> <li>Contact</li> <li>Faq</li> <li>Home</li> </ul> <p>And 3 areas:</p> <ul> <li>Admin</li> <li>Customers</li> <li>Shop</li> </ul> <p>In each area I have at least one controller, for example in Admin I have the controller <strong>overview</strong> with the corresponding view folder <strong>overview</strong> which contains an <strong>index.aspx</strong> page.</p> <p>The home page and all the main pages (about, faq, etc.) work and can be visited).</p> <p>However, when I follow the url: localhost:xxxx/en/admin/overview I get the error </p> <blockquote> <p>The controller for path '/en/admin/overview' was not found or does not implement IController.</p> </blockquote> <p>Even though, the route is correct (I can see this with Route Debugger). THe error page also shows that the error was thrown when I wanted to load my main menu items:</p> <pre><code>&lt;nav id="site-navigation" class="eightcol"&gt; @Html.Action("MenuItems", "Common") &lt;/nav&gt; </code></pre> <p><strong><em>-- Code removed because irrelevant --</em></strong></p> <p>Everything seems to be in order, but MVC doesn't seem to be able to load the menu, which is located in the main part.</p> <p>So, the root of the problem is: Can I grant an area (e.g. Admin) access to the controllers in the main part (home, common, about, etc.) of my project?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload