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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:51:52+00:00 2026-06-09T13:51:52+00:00

When dealing with plugin assemblies in their own subdirectories, there is the well-known problem

  • 0

When dealing with plugin assemblies in their own subdirectories, there is the well-known problem that these assemblies fail to load once they try to load their respective dependencies from their subdirectories. A solution is to load the plugins in AppDomains which had their PrivateBinPath set in their AppDomainSetup object upon initialization. However, this causes other difficulties concerning marshalling/cross-AppDomain communication, in particular if the plugins are supposed to provide some GUI.

When security aspects have a lower priority (non-critical utility application, no severe problems upon crashes caused by faulty plugins), I’ve had the following idea: Upon application start-up, all plugin directories should be searched for, and a new AppDomain should be created that has those directories in its bin path. Then, the whole application and its GUI run in that new AppDomain, along with all plugins.

Under the given circumstances, are there any reasons to avoid that solution? Or are there maybe any reasons why that solution isn’t even feasible?

  • 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-09T13:51:54+00:00Added an answer on June 9, 2026 at 1:51 pm

    Taking in consideration your described scenario I don’t know of any issue associated with your proposal for a second domain. However, you may also investigate the possibility of handling the assembly loading failures on the initial domain by searching yourself through the addins sub-directories and loading the assembly from there using Assembly.LoadFrom.

    Example of a possible setup for this, where the FindAssemblyByName would have to be implemented to search through all the possible locations:

    static void Main(string[] args)
    {
        AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
    
        // ...
    }
    
    static Assembly CurrentDomain_AssemblyResolve(
        object sender, 
        ResolveEventArgs e)
    {
        var assemblyName = new AssemblyName(e.Name);
    
        string assemblyFilePath = FindAssemblyByName(assemblyName);
    
        if (string.IsNullOrEmpty(assemblyFilePath))
            return null;
    
        return Assembly.LoadFrom(assemblyFilePath);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any tools that can verify whether a jQuery plugin will be compatible
What are good ways of dealing with the issues surrounding plugin code that interacts
Is there a standard feature or plugin for Dreamweaver CS5 that allows tag highlighting
When dealing with a collection of key/value pairs is there any difference between using
I'm dealing with a problem the whole week already and can't find the answer
I am dealing with very primitive HTML construction that goes like this: <a NAME=header1></a><b><font
I know this a problem with the way I have coded the plugin for
I have downloaded the google data API plugin for eclipse. While dealing with the
I am working with a COM plugin interface that has the following function definition:
Not sure if there's a neat way of dealing with it, it just makes

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.