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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:53:28+00:00 2026-06-13T09:53:28+00:00

Using Prism with WPF, I want to allow users to select from a repository

  • 0

Using Prism with WPF, I want to allow users to select from a repository which modules they’d like to use. Each module is essentially an add-on, and selecting a module to use would just move it into their ‘Modules’ folder of DLL to load.

But, in trying to move DLLs around when the application is running, an error is thrown because the DLLs are in use at that moment. How can you get around this and allow users to Add/Remove modules at will?

  • 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-13T09:53:29+00:00Added an answer on June 13, 2026 at 9:53 am

    Once an assembly is loaded into an AppDomain, it does not (cannot) get unloaded until the AppDomain is torn down….I guess that is your problem.

    There’s some techniques to get around that if you look on the net…..

    Create An Additional AppDomain

    Create an additional AppDomain which you can then load your assembly into….when you are finished you just call Unload to shutdown the AppDomain and this will release the assembly.

    However the types you want to be accessible from the other AppDomains have to derive from MarshalByRefObject so that your object is remoteable….and calls from other AppDomains can be marshalled across.

    • Using AppDomain in C# to dynamically load and unload dll

    Load Assembly into a MemoryStream

    A very interesting technique here….it loads the assembly into a MemoryStream first, then it gets .NET to load the Assembly from the MemoryStream…that means the “file” on disk, isn’t locked.

    • http://social.msdn.microsoft.com/Forums/en-US/clr/thread/093c3606-e68e-46f4-98a1-f2396d3f88ca/

    • How do I implement .net plugins without using AppDomains?

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

Sidebar

Related Questions

Does anyone know of WPF code examples using Prism in which modules each register
I'm building a WPF application using prism and I'd like to use workflow foundation
I have a WPF application using Prism. The application loads several modules. Each module
I have an application which I am developing using WPF\Prism\MVVM. All is going well
I am creating an application using WPF which is using Prism framework. I have
I have a Main WPF application and other modules and I am using PRISM
I've just started learning WPF MVVM using Prism and Unity. Decoupling the view from
I'm using PRISM and a new control which I found in CodePlex: WPF Property
We have the beginnings of a modular wpf application built using prism. We want
Using WPF/PRISM I want to log my messages through ILoggerFacade to my GUI (A

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.