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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:19:11+00:00 2026-05-26T11:19:11+00:00

I am wondering if it is possible to load an Assembly into an AppDomain

  • 0

I am wondering if it is possible to load an Assembly into an AppDomain using only the namespace string, for example System.Data.Odbc (without the rest of the fully qualified Assembly name)

I also cannot load the assembly using the path to the DLL, I need .NET to resolve this for me.

Background:

I have a C# script compiler running in another AppDomain, these scripts can contain references such as: System.Data.Odbc.OdbcConnection conn and I need to load types the script references.

I am parsing out System.Data.Odbc.OdbcConnection and loading System.Data.Odbc. I expect the loading of System.Data.Odbc.OdbcConnection to fail, and my code accounts for this, but I need to know if it’s possible to load an assembly ONLY using the string System.Data.Odbc

I reviewed this question:

Can I load a .NET assembly at runtime and instantiate a type knowing only the name?

However it does not help me, since it assumes knowledge of the dll file name.

It is safe to assume for this question that the libraries are located in the GAC or the app’s base directory.

  • 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-26T11:19:11+00:00Added an answer on May 26, 2026 at 11:19 am

    In general this is not possible to do. There is no inherent relationship between a DLL and a namespace. It’s possible for multiple DLL’s to contain the same namespace and a single DLL to contain multiple different root namespaces. So there is not guaranteed to be a 1-1 mapping here.

    However you could create a table in your application between a given namespace and the set of DLLs which do contain it. Then for a namespace try and load all of those DLL’s in sequence. That will get you close to the effect you are looking for (but only for a limited set of available DLLs)

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

Sidebar

Related Questions

Is it possible to hold a reference to an Assembly from another appdomain without
Using Play Framework, I was wondering if it was possible to load some vars
I'm wondering if its possible to load a html page but only display a
I'm managing some data using a mediawiki and am wondering if it is possible
I am wondering if it is possible to load javascript in a way in
I was wondering if it was possible to load a asp.net control (.ascx) that
I am wondering if it is possible to render an action's view without loading
I am currently wondering if it is possible to load a swf that is
I was wondering if it's possible to store form data such as 'title' and
i’m wondering if it’s possible to load code from an external file to be

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.