Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7818643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:38:52+00:00 2026-06-02T06:38:52+00:00

I am trying to create an area in a separate assembly. My route appears

  • 0

I am trying to create an area in a separate assembly. My route appears correct, according to RouteDebugger, but I am getting a “The controller for path {0} was not found or does not implement IController.” error.

I verified that the controller is registered in my container, but under a different namespace which I am specifying in my route.

Route registration:

    routes.MapRoute(
        "EventCalendar", 
        "EventCalendar/{action}/{id}", 
        new { controller = "EventCalendar", action = "Index", id = UrlParameter.Optional }, 
        new[] { "MyAssembly.MyName.Controllers", " MyAssembly.MyName" }
    );

Controller:

namespace MyAssembly.MyName.Controllers
{
    public class EventCalendarController : Controller
    {
        public PartialViewResult Index()
        {
            return new PartialViewResult
            {
                ViewName = "~/Views/EventCalendar/Index.cshtml",
                ViewData = new ViewDataDictionary<object>(this.ViewData.Model)
            };
        }
    }
}

I am specifying both the namespace of the controller and the parent namespace in the route. Examples I have looked at are not clear as to which one is required. OrchardCMS uses the parent namespace.
Am I registering the route correctly?

As long as the controller is in my container, and the namespace matches, it should resolve and be invoked right? The controllers in the main assembly work fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T06:38:54+00:00Added an answer on June 2, 2026 at 6:38 am

    You may want to use Dependency Injection for doing that. I’m working on a project with a similar approach (some Controllers in separated assemblies) and we’re using Unity to inject the controllers to the MVC project. Maybe this URL could be helpful

    Also please ensure that the corresponding dll is on the bin folder of your MVC project, so the type can be resolved

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a similar area chooser as in the Path application. Idea
I am trying to create a drawing area with canvas. I am having trouble
I am trying to create a gradient fill for a series in an area
I'm trying to catch a double-click event in a TreeView's empty area to create
I'm trying to create a logout link that gets included into an authorized area.
I am trying to create a page in my WordPress Admin Area that displays
I'm trying to create a menu that works like the android notification drop-down area.
I am trying to create a role within Sitecore which can publish content, but
I am trying to create a forum for my website, but I want to
I'm trying to create an area that can be changed dinamically with arrows, so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.