Unable to load plug-in


I am currently trying to migrate a plug-in from rhino 5 to rhino 6. After a lot of changes to the plugin it builds in Visual Studio as a Rhino 6 project, however when the project runs in the debugger, Rhino 6 cannot manage to install the plug-in. The error "unable to load “myplugin”.rhp plug-in: initialization failed.

Does anyone know what could cause this message, or even how to fix it? If not, could anyone suggest how/where to start to find the root cause of the issue?

I’ve searched the forum and I can see other having experienced the same error, however unfortunately I have not seen anything in these threads that I was able to find helpful in my particular project.

Thank you!

Is your plug-in written in C++ or in C#?

It’s written in C++

Ok, a couple of things:

  • Have you run the v5>v6 migrator, see https://github.com/mcneel/cpp-migrator
  • Does your plug-in have any dependencies, other DLL’s that it is using or files that it expects to find somewhere?
  • Are you running a debug build or a release build? In v6 the debug build process has changed and requires you to link to the release libraries of rhino.