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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:50:33+00:00 2026-05-25T17:50:33+00:00

I have a pretty straightforward question. Is it ok to store plugin DLLs in

  • 0

I have a pretty straightforward question.

Is it ok to store plugin DLLs in a /Plugin folder instead of /Bin? I’m experimenting with plugin design in the context of ASP.NET WebForms (and MVC) and I am wondering if there could be an issue with storing plugin DLLs in a /Plugin folder instead of the /Bin folder.

Thanks for any help.

Update

I’m coming at this from the perspective of this article: http://www.c-sharpcorner.com/UploadFile/40e97e/7192/.

I am going to load plugins using Reflection.

Sample Code:

public class PluginLoader
{
    public static IList<IPlugin> Load(string folder)
    {
        IList<IPlugin> plugins = new List<IPlugin>();

        // Get files in folder
        string[] files = Directory.GetFiles(folder, "*.plug.dll");
        foreach(string file in files)
        {
            Assembly assembly = Assembly.LoadFile(file);
            var types = assembly.GetExportedTypes();
            foreach (Type type in types)
            {
                if (type.GetInterfaces().Contains(typeof(IPlugin)))
                {
                    object instance = Activator.CreateInstance(type);
                    plugins.Add(instance as IPlugin);
                }
            }
        }
        return plugins;
    }
}
  • 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-25T17:50:34+00:00Added an answer on May 25, 2026 at 5:50 pm

    The only thing you generally need to watch for is when you are trying to use types from those plugin assemblies in your views (or pages), they’ll likely fail to resolve at runtime. This is due to the nature of the dynamic compilation model ASP.NET uses for non-precompiled applications.

    Essentially, your views (and pages) will be dynamically compiled by the ASP.NET runtime, not a compile time, so when the assembly binder attempts to resolve those types, because they are not in the default bin location, it won’t find them. A simple easy fix would be to use AppDomain.CurrentDomain.AppendPrivatePath, passing in the path of your plugins folder, e.g. Server.MapPath("~/plugins")

    The method itself is marked as obselete and might be removed in future versions of the framework, (as generally you would configure the probing path through AppDomainSetup), but it does work.

    If at all you are unhappy about this approach, you could always deploy your plugin assemblies within your bin directory instead.

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

Sidebar

Related Questions

OK, this begins to drive me crazy. I have an asp.net webapp. Pretty straightforward,
So pretty straightforward question. I have a c# .dll with a whole lot of
I have a pretty straightforward question which google fails to give me the answer
This should be pretty straightforward I would think. I have this string: [quote=Joe Johnson|1]Hi![/quote]
What I want to do is pretty straightforward. I have a site powered by
Well, I'm gonna be pretty straightforward here, I just have a piece of code
I have pretty big background of .net, and I've decided that i want to
i have pretty simple simple question (i hope so). How do i change the
This is a pretty straightforward architectural question, however it's been niggling at me for
pretty straightforward question: Is there a good web services solution for Joomla1.5+? I've been

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.