Could not load file or assembly 'BrxMgd'

I am starting to learn .Net programming and I'm invoking one of the functions in the supplied example under C:\Program Files (x86)\Bricsys\BricsCAD V15 en_US\API\dotNet. I don't have have any compiling error but only when calling the DatabaseSample.do_addCircle();
I'm using BricsCAD V15 on WIndows 7 32Bit and Visual Studio 2010 Express.
Can someone help me with this error.
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in WindowsFormsApplication6.exe
Additional information: Could not load file or assembly 'BrxMgd, Version=19.1.5669.20293, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Comments

  • Did you use the _NETLOAD command to load your DLL?

    Edit: I see now the reference to WindowsFormsApplication.exe. You can only use the managed API from a DLL loaded into the BricsCAD process via _NETLOAD, so you should be building a "class library" instead of a "windows forms application".

  •  Thanks Owen.
    I was wrong building a window form app instead of a class library.
This discussion has been closed.