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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:54:29+00:00 2026-05-23T10:54:29+00:00

We’re building a PIP-installer for our plugin. The plugin consists of one module in

  • 0

We’re building a PIP-installer for our plugin. The plugin consists of one module in one DLL, lets call it MyCoolPlugin.dll (actually, this DLL consists of several merged DLLs). In addition the plugin has a few dependencies to third party DLLs (e.g. Infragistics2.Win.UltraWinChart.v10.3.dll).

The plugin installs fine, but the process embedded in the plugin has an UI depending on UltraWinChart. When creating the GUI for this process the plugin throws an exception about not being able to load Infragistics2.Win.UltraWinChart.v10.3.dll even though this file resides in the same directory as MyCoolPlugin.dll. The “This process does not have a defined description or user interface”-dialog then appears.

If we copy Infragistics2.Win.UltraWinChart.v10.3.dll to a directory listed in the probingPath defined in petrel.exe.config the plugin works fine. The plugin.xml looks correct, but has no references to the dependencies. The manifest contains one <File> entry for each file in the plugin directory, including Infragistics2.Win.UltraWinChart.v10.3.dll.

Why isn’t the dependencies loaded correctly?

EDIT:

I’ve come up with a workaround for the problems we’re seeing. By manually preloading dependencies (by filenames) on plugin initialization (the Initialize() function) I’m able to ensure that all dependencies are pre-loaded. However, I’m not sure if this solution is stable (I get occasional crashes on startup). The code I’m using is:

Assembly me = Assembly.GetExecutingAssembly();
FileInfo file = new FileInfo(me.Location);
foreach (FileInfo assembly in file.Directory.GetFiles("*.dll"))
{
    try
    {
        Assembly.LoadFile(assembly.FullName);
    }
    catch (Exception e)
    {
        CoreLogger.Error(string.Format("Failed to load assembly {0}.", assembly.FullName), e);
    }
}

Do you have any details on how you ensure plugin .NET assembly dependencies are loaded (external dependencies, not module dependencies)? Are you using the AppDomain.CurrentDomain.AssemblyResolve-event to intercept load failures? This answer shows how to use this event to load assemblies from the same folder as the executing assembly when all else fails. I think that the correct approach would be to use the calling assembly instead (as the executing assembly probably will be the assembly in which the event handler is defined). I haven’t successfully tested this workaround yet.

Note that I’ve tested with other assemblies to ensure that this isn’t an Infragistics-issue.

Edit 2:
As stated in the earlier, the plugin DLL is a merged DLL consisting of several assemblies. I’ve used this approach to determine the direct dependencies, and it seems Infragistics isn’t one of them. Could this be of relevance?

  • 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-23T10:54:29+00:00Added an answer on May 23, 2026 at 10:54 am

    I think the issue is related to obfuscation of our assembly. If we do not obfuscate the assembly (and hence merge all assemblies into one big assembly) everything works fine. I’m guessing that this is because Petrel is loading plugin assemblies, checking the reference assemblies and loading dependencies recursively. This won’t work in this case as not all assemblies are listed as reference assemblies.

    A workaround for this is to include the reference assemblies (Infragistics) in the merged assembly. This seems to work fine. However, I guess this isn’t always acceptable (e.g. for LGPL licensed libraries).

    Another, maybe better, apporach would be to listen to the AppDomain.CurrentDomain.AssemblyResolve-event to intercept assembly loading errors.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.