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

  • Home
  • SEARCH
  • 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 8852485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:24:47+00:00 2026-06-14T13:24:47+00:00

I have an ASP.NET web project where I need to host a number of

  • 0

I have an ASP.NET web project where I need to host a number of SignalR hubs that another MVC3 application will talk to.

My main problem is that I don’t know until runtime which Hubs I will be hosting as they need to be MEF’d in. The DLLs containing the exports (of type IXXXHub) will be in the bin directory of the ASP.NET web site. At the moment there are 3 exportable types – AHub, BHub and CHub but there could be more, e.g. DHub may be implemented later.

I’ve gone through the SignalR sample showing how to host in an ASP.NET web project so the part I’m confused about is trying to get mine MEF’d in and host one of each of AHub/BHub/CHub. I’ve looked at various approaches using Application_Start but couldn’t work out how.

Does anyone have an idea?

  • 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-14T13:24:48+00:00Added an answer on June 14, 2026 at 1:24 pm

    I got the answer in the end by just having the [ImportMany] attribute on a List object in the Global.asax class and then having the MEF catalog/container/ComposeParts code in the Application_Start function.

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

Sidebar

Related Questions

I have an ASP.NET web application project which references another project called ModusCore (or
We have an ASP.Net MVC project that will start with a single web server
I have a ASP.net Web forms project that I am working on. I need
I have an ASP.Net web application that is deployed to a number of different
I have an ASP.NET VB.NET web project that references a VB.NET class library. I
I have asp.net mvc 4 web application project on my server in IIS Directory.
I have an asp.net mvc application and now I need to add a web
All, I have a ASP.NET Web API project that is making a REST call
How do I handle versioning in my ASP.NET Web-Api project? I need to have
I have an asp.net web service that I want to consume from another asp.net

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.