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 6858449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:09:37+00:00 2026-05-27T02:09:37+00:00

How to register Controller in MVC3? I have 2 solutions: MvcApplication (MVC 3 Web

  • 0

How to register Controller in MVC3?

I have 2 solutions:

  • MvcApplication (MVC 3 Web Application) with file ‘HomeController.cs’

  • CustomController (Class library) with file ‘CustomController.cs’

If i Build ‘CustomController’ solution and Add reference in MvcApplication solution to this, i can simple use CustomController in application. But how i can do it without ‘Add reference’ action, just with Assembly.LoadFrom(PathToDll) e.t.c.?

  • 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-05-27T02:09:38+00:00Added an answer on May 27, 2026 at 2:09 am

    You could use MEF for that.

    See a good article

    http://blog.maartenballiauw.be/post/2009/04/21/ASPNET-MVC-and-the-Managed-Extensibility-Framework-(MEF).aspx

    This section in your global.asax, register the new controller fac and set the “Plugins” folder for MEF load their libraries. Plugins folder is in your asp.net app root folder.

    ControllerBuilder.Current.SetControllerFactory( 
    new MefControllerFactory( 
        Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Plugins")));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this controller: public JsonResult Register(string step , GlobalOnBoardingDataModel data){} the MVC wont
I have created application in mvc3 and I used the default account controller for
I am trying to use Autofac and Autofac.Integrations.Web to register ASP.NET MVC controllers. I
Given the following setup, I have three assemblies. Web (ASP.NET MVC 3.0 RC1) Models
I'm looking at creating my first ASP.NET MVC application using MVC3. The project template
I am using MVC3 and I want to have LogIn form and Register form
I have an ASP.NET MVC 3 application. I am trying to implement the routing
can I have domain.com/action/id as well as domain.com/controller/action? how would I register these in
I just started an MVC 3 project using Forms Authentication. I have a web
I have to build a registration form using asp.net mvc 3 jquery validate. That

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.