by cncdrive » Tue Apr 03, 2018 3:07 pm
You have to target .NET 2.0 if using UCCNC version 1.2047, because that version still targets the .NET framework 2.0, so building the plugin with .NET 4.0 will not work.
When you running UCCNC version 1.2102 or later those versions targeting the .NET 4.0, because there was an upgrade in 1.2102 to target the newer .NET 4.0, so for those new UCCNC versions you can still run the .NET 2.0 built plugins, but you can't use those new UCCNC installations to develop .NET 2.0 targeted plugins, you can only compile the plugins with targeting them to .NET 4.0, because the plugin interface dll is now .NET 4.0 targeted.
I suspect you getting that error because of a badly referenced library which your plugin can't load.
Please note that the Application.Startuppath is different when you compiling the plugin if the plugin is in the UCCNC/Plugins folder than if you running the UCCNC to test the plugin, then the Application.StartupPath is the folder where the UCCNC.exe file is. So, however I did not see your sourcecode, but this might be the problem depending on how you import executable dlls...