OpenStudioModelCorePINVOKE 2021

Dear all:
I am trying to install Ladybug and I get an error when running OpenStudio. “1. Solution Exception:The type initializer for ‘OpenStudio.OpenStudioModelCorePINVOKE’ threw an exception.”

I’m not a programmer, because what I’m having trouble with is being able to troubleshoot it.

I’ve installed the latest versions of everything (OpenStudio, Radiance, Therm), in C:\NsersUsuario’sug_tools.

Can you help me?

Thanks in advance.

If you absolutely have to use the Legacy Honeybee plugin, then you need to use OpenStudio 2.9.1. Uninstall your current OpenStudio and install 2.9.1. Here’s the link to 2.9.1:

If you are ok not using Legacy Honeybee, I would recommend switching to the LBT 1.2 plugin since there’s no more PINVOKE errors in that plugin and you can use the more recent versions of OpenStudio.