I was building a Zero Touch plugin as a DLL, and trying to pass this DLL, along with the other referred DLLs, from my office laptop to two colleagues’ workstations for testing purposes. If it matters, the method of passing is simply by copy-and-paste via a thumb drive; we are still in the middle of setting up our release server. When importing the DLL on their machines, I encountered the following error.
Failed to import C:\path\myplugin.dll
Exception of type ‘ProtoCore.BuildHaltException’ was thrown.
This happens on both Dynamo Revit and Autodesk Dynamo Studio.
- Verifying that the DLL is a managed one, and it is, as it can be imported and used normally from my office laptop.
- The most frequent suggestion is to unblock the files. As there is no such option in my colleagues’ machines, I used PowerShell to do this. However, this still didn’t work too.
- I repeated the above procedure with a very simple DLL, built from a class with one static method, and it can be imported on both my colleagues’ machines without any problem.
- I tried to import the original DLL with my own personal laptop, and it worked!
Does anyone have any idea how to solve this problem please?