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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:33:48+00:00 2026-06-18T08:33:48+00:00

We have got the following setting: A IPlugin interface, which is being exposed by

  • 0

We have got the following setting:
A IPlugin interface, which is being exposed by the main executable. The main executable (and the plugins) are located on a removable drive.

We are trying to load every dll in a Plugin directory:

For Each Type As Type In asm.GetTypes()
     Trace(Type.ToString())
     If GetType(IPlugin).IsAssignableFrom(Type) Then
         loadedPlugin = asm.CreateInstance(Type.Namespace & "." & Type.Name)
     End If
Next

However, it does not seem to find a matching class which implements IPlugin, althrough I can see there is one.
If I try to force it to load the class via calling CreateInstance directly, I get a ReflectionTypeLoadException.

However, the auto detection process does work flawlessy when I run the application on a local drive.

I know that there can be a security problem with .NET Apps on removable/network drives, but no Security Exception is thrown. I’ve also got .NET Framework 4.0 installed.

The Plugin DLL is built against the newest version of the Plugin interface, therefore it does not seem to be a version mismatch.

The operating system is Windows 7 x64.

GetType(IPlugin).AssemblyQualifiedName: App.IPlugin, MainApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Type.GetInterface(“IPlugin”).AssemblyQualifiedName: App.IPlugin, MainApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

They both have the same result.

Workaround: If I copy the plugin assembly to a local drive, it does work. However, that is not a very nice solution. Maybe something better comes up.

Another thing I might have to point out: The .NET application is mainly a plugin itself, which is being called by a VB6 application natively.

Can someone help me?

Thank you very much 🙂

  • 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-18T08:33:49+00:00Added an answer on June 18, 2026 at 8:33 am

    The workaround “copy the plugin to the temp directory on the local drive” does work.

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

Sidebar

Related Questions

Ive got the following problem. I have a model called user which has a
I have got the following class structure, and have plenty of classes like C
I have got the following very simple code: function init() { var articleTabs =
I have got the following issue, my function appends code to a string $string
In some measure of progress since my last question I have got the following
I have got a the following problem: I have got multi-step form where in
I'm following the Django-CMS introductory tutorial and have got everything working up to the
I've got the following problem: I have two tables: (simplified) +--------+ +-----------+ | User
I've got the following tables: magazine_tags news_tags page_tags content_tags faq_tags They all have exactly
I just got done setting up my app to work with authlogic following this

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.