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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:27:13+00:00 2026-06-02T20:27:13+00:00

I am able to place breakpoints and examine variables for a .NET dll loaded

  • 0

I am able to place breakpoints and examine variables for a .NET dll loaded with ‘Assembly.LoadFile’, however, for some reason the visualizer for the Generic List doesn’t show any of the elements (as seen below). The same thing shows in the watch window as when I hover over the variable.

I have examined these different solutions, but none seem to work (it also seems they mostly deal with not even being able to debug the dll):

Debug dynamically loaded assembly

Debug dynamically loaded assembly in Visual Studio .NET

I put the pdb side by side with the dll (from the exact location it is loaded from). I also put that dll’s pdb file right next to the executable that was doing the loading, and still no dice. I am compiling in Debug, and have set all configurations to x86. One thing to note, if I actually put add the dll as a Reference, the debug visualizer shows up perfectly (however, this is a plugin architecture, and the exe shouldn’t have to have a dependence upon the dll).

Any ideas?

[Edit]

It turns out that I cannot just add the plugin as a Reference, I have to actually instantiate a List of that type in my exe before it can be displayed properly, not sure what’s going on…

[Edit]

I made this sample project which exhibits the behavior. I used similar code to how I was loading plugins (though interestingly enough, just calling Assembly.LoadFile directly and invoking a method via reflection doesn’t seem to cause the behavior. I zipped up the sample project here: (does anyone else get the same results?)

http://dl.dropbox.com/u/64502227/PluginLoader.zip

[Edit]

Another interesting development! I have a Plugins folder next to the exe, where all the dlls go. Currently, I am copying the plugin dll/pdb into both the exe directory, and the Plugins sub directory. If I use Assembly.LoadFile and use the dll in the Plugins directory, I lose the List visualizer for my own types. If I load the dll right next to the exe, it works, but why?

What I see:

enter image description here

  • 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-02T20:27:15+00:00Added an answer on June 2, 2026 at 8:27 pm

    Solution A:

    • Load all dlls from the exe directory and not their own directory.

    Solution B:

    Use this to create the plugin:

    Plugin plugin = (Plugin)Activator.CreateInstance(assembly.FullName, "SamplePlugin.MyPlugin").Unwrap();
    

    Instead of this:

    Plugin plugin = (Plugin)Activator.CreateInstance(assembly.GetType("SamplePlugin.MyPlugin"));
    

    I would figure that the second line of code would actually just internally be called by the first line of code (eg the first line would have to look up the assembly by name, then find the type “SamplePlugin.MyPlugin” out of it, then Unwrap() it to return it), but apparently not.

    Unfortunately, this is a solution to the problem, but it doesn’t answer WHY it happens. If anyone knows, I would still greatly appreciate the information.

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

Sidebar

Related Questions

I would like to be able to place breakpoints, and see the call stack,
I'm trying to be able to place the error message when using jQuery validation
We've got an apache module in place for authentication. If the user is able
How would I be able to rewrite anyhost.com/argument1/parameter2/some-text/ as anyhost.com/index.php?path=argument1/parameter2/some-text/ or anyhost.com/index.php?page=argument1&subpage=parameter2&subsubpage=some-text or anything
I'm not able to assign a generic list to ViewBag. Here is my code:
I am able to place multiple charts on a chart sheet by creating an
I would like to be able to place an empty tag anywhere in my
I'm working on a project and I would like to be able to place
By creating the appropriate markup for Tabs, I've been able to place a jQuery
Are you able to place a variable into attr of src? Example: $(#member-image2).attr({src :

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.