Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

I get the following error: Could not load file or assembly 'TD_Mgd.dll ...

Hello,
we use Visual Studio together with your dlls BrxMgd.dll, TD_Mgd.dll and TD_MgdBrep.dll.
If try to open a WinForms GUI in the VS designer, I get the following error:
Could not load file or assembly 'TD_Mgd.dll, Version=4.3.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The specified module could not be found.
When I open the same GUI under the configuration for AutoCAD, I don't get any errors.
Do you have any suggestions? Thank you.

pic.png 28.2K

Best Answers

  • Is the PATH listed in the Reference Properties ??

  • Those managed assemblies can only be loaded into a running BricsCAD process. It is not possible for Visual Studio to load them into the UI designer. The best you can do is to make controls from those assemblies conditional on DesignMode so those controls are not instantiated when displaying in designer.

Answers

  • edited March 2019

    Thank you very much for your suggestions.

    In order to solve this I tried out the following in the ***.Designer.cs file:

    **** cases where the Visual Studio designer quits with error(s) ****
    case 1:
    this.layerComboBox = new LayerComboBox();

    case 2: (there has been no instantiation of layerComboBox before)
    this.layerComboBox = null;

    case 3: (even though it is unreachable code)
    if (false)
    this.layerComboBox = new LayerComboBox();

    **** cases where the Visual Studio designer works fine ****
    case 4:
    // this.layerComboBox = null;

    case 4:
    #if !BCAD
    this.layerComboBox = new LayerComboBox();
    #endif

Sign In or Register to comment.
Origami
Origami is the Japanese word for paper folding. ORI means to fold and KAMI means paper and involves the creation of paper forms usually entirely by folding.

Powered by VanillaForums, Designed by Steam