Startup errors: new installation ironbug

When I start up grasshopper after installing Ironbug, I have the following errors. I’m new to this so if there’s something I’ve missed, I’d love some help in figuring this out!

Object: Ironbug_SetpointManagerWarmest (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerWarmest (level 2)
{
The type initializer for ‘Ironbug.Grasshopper.Component.Ironbug.Ironbug_SetpointManagerWarmest’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerWarmest (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerWarmest (level 4)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerWarmest (level 5)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerWarmest (level 6)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerWarmest (level 7)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_SetpointManagerSingleZoneReheat (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerSingleZoneReheat (level 2)
{
The type initializer for ‘Ironbug.Grasshopper.Component.Ironbug.Ironbug_SetpointManagerSingleZoneReheat’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerSingleZoneReheat (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerSingleZoneReheat (level 4)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerSingleZoneReheat (level 5)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerSingleZoneReheat (level 6)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerSingleZoneReheat (level 7)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_SetpointManagerScheduled (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerScheduled (level 2)
{
The type initializer for ‘Ironbug.Grasshopper.Component.Ironbug.Ironbug_SetpointManagerScheduled’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerScheduled (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerScheduled (level 4)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerScheduled (level 5)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerScheduled (level 6)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerScheduled (level 7)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_SetpointManagerOutdoorAirReset (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerOutdoorAirReset (level 2)
{
The type initializer for ‘Ironbug.Grasshopper.Component.Ironbug.Ironbug_SetpointManagerOutdoorAirReset’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerOutdoorAirReset (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerOutdoorAirReset (level 4)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerOutdoorAirReset (level 5)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerOutdoorAirReset (level 6)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerOutdoorAirReset (level 7)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_SetpointManagerFollowOutdoorAirTemperature (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerFollowOutdoorAirTemperature (level 2)
{
The type initializer for ‘Ironbug.Grasshopper.Component.Ironbug.Ironbug_SetpointManagerFollowOutdoorAirTemperature’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerFollowOutdoorAirTemperature (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerFollowOutdoorAirTemperature (level 4)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerFollowOutdoorAirTemperature (level 5)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerFollowOutdoorAirTemperature (level 6)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerFollowOutdoorAirTemperature (level 7)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMaximum (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMaximum (level 2)
{
The type initializer for ‘Ironbug.Grasshopper.Component.Ironbug.Ironbug_SetpointManagerMultiZoneHumidityMaximum’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMaximum (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMaximum (level 4)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMaximum (level 5)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMaximum (level 6)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMaximum (level 7)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMinimum (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMinimum (level 2)
{
The type initializer for ‘Ironbug.Grasshopper.Component.Ironbug.Ironbug_SetpointManagerMultiZoneHumidityMinimum’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMinimum (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMinimum (level 4)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMinimum (level 5)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMinimum (level 6)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerMultiZoneHumidityMinimum (level 7)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_SetpointManagerMultiZoneHeatingAverage (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerMultiZoneHeatingAverage (level 2)
{
The type initializer for ‘Ironbug.Grasshopper.Component.Ironbug.Ironbug_SetpointManagerMultiZoneHeatingAverage’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerMultiZoneHeatingAverage (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerMultiZoneHeatingAverage (level 4)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerMultiZoneHeatingAverage (level 5)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerMultiZoneHeatingAverage (level 6)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerMultiZoneHeatingAverage (level 7)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_SetpointManagerSingleZoneCooling (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerSingleZoneCooling (level 2)
{
The type initializer for ‘Ironbug.Grasshopper.Component.Ironbug.Ironbug_SetpointManagerSingleZoneCooling’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerSingleZoneCooling (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerSingleZoneCooling (level 4)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerSingleZoneCooling (level 5)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerSingleZoneCooling (level 6)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerSingleZoneCooling (level 7)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_SetpointManagerSingleZoneHeating (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerSingleZoneHeating (level 2)
{
The type initializer for ‘Ironbug.Grasshopper.Component.Ironbug.Ironbug_SetpointManagerSingleZoneHeating’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerSingleZoneHeating (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerSingleZoneHeating (level 4)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerSingleZoneHeating (level 5)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerSingleZoneHeating (level 6)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerSingleZoneHeating (level 7)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_SetpointManagerColdest (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerColdest (level 2)
{
The type initializer for ‘Ironbug.Grasshopper.Component.Ironbug.Ironbug_SetpointManagerColdest’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerColdest (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerColdest (level 4)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_SetpointManagerColdest (level 5)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerColdest (level 6)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_SetpointManagerColdest (level 7)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_ExistPlantLoop (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_ExistPlantLoop (level 2)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_ExistPlantLoop (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_ExistPlantLoop (level 4)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_ExistPlantLoop (level 5)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_ExistPlantLoop (level 6)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_ExistAirLoopHVAC (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_ExistAirLoopHVAC (level 2)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_ExistAirLoopHVAC (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_ExistAirLoopHVAC (level 4)
{
The type initializer for ‘OpenStudio.OpenStudioModelHVACPINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_ExistAirLoopHVAC (level 5)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_ExistAirLoopHVAC (level 6)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_Schedule (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_Schedule (level 2)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_Schedule (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_Schedule (level 4)
{
The type initializer for ‘OpenStudio.OpenStudioModelCorePINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_Schedule (level 5)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_Schedule (level 6)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Object: Ironbug_ScheduleTypeLimits (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_ScheduleTypeLimits (level 2)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_ScheduleTypeLimits (level 3)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Ironbug_ScheduleTypeLimits (level 4)
{
The type initializer for ‘OpenStudio.OpenStudioModelCorePINVOKE’ threw an exception.
TypeInitializationException
}

Object: Ironbug_ScheduleTypeLimits (level 5)
{
The type initializer for ‘SWIGExceptionHelper’ threw an exception.
TypeInitializationException
}

Object: Ironbug_ScheduleTypeLimits (level 6)
{
Unable to load DLL ‘openstudio_model_csharp.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
DllNotFoundException
}

Hi @meghanakulhalli could you provide more details so that we can help you.
Which version of OpenStudio do you have?
Which version of Ironbug did you install?
For “PINVOKE” error, have you searched this error on this forum, since it has been discussed a several times?

Hi Mingbo, I have OpenStudio 3.1.0 and Ironbug V0.0.16.
I was unsure how to troubleshoot the long list, or if they were interrelated, hence the question. Apologies if it has been answered before, I’m still finding my way around the different plug-ins!

Regards,
Meghana

1 Like

Okay I already see the problem. I misread the latest supported OpenStudio version. I’ll try again with the right version!

Edit: After downgrading to OpenStudio V3.0.0 and copying some dlls as mentioned in this discussion, I don’t have the errors anymore!

Glad it works now. Yes these version issues are annoying.

Hi @MingboPeng.
Sorry to rise this issue again but loading Ironbug is making some troubles.
There is a long list (as the one reported above):


I’m using the last IB released, the one that supports OS3.1 (V1.0.0.0), as you can see in the image above.
I checked for previous solutions of the PINVOKE issue, but seems to be the solution is not right for OS3.1 (though checked the location of the dll and lib files recommended to copy into the CSHARP folder and they are already there).
However, i can see the IB tab at the top of GH window but i don’t know about the functionality of the components or if there is something missing:

Just to confirm, i did unblock the downloaded zip file.

Any ideas what else i can check?

Thanks,
-A.

Hi @AbrahamYezioro, I guess it is mainly because of the OpenStudio 3.1 and I haven’t released the new Ironbug for 3.1, but I made some quick updates so that Ironbug could work with new OpenStudio 3.1 here: Ironbug Beta Release (outdated) - #79 by MingboPeng

Let me know if this helps.

Hi @MingboPeng ,
This is the version that i have installed already. Is this v1.0.0.0, right?
I guess is not bullet proof …
-A.

Ha, my bad, I think you were using the single-click installer, which doesn’t includes everything of OpenStudio SDK for Ironbug. Do you have installed OpenStudio 3.1 to your C drive, could you copy following files to the your “ladybug_tools\openstudio\CSharp\openstudio”?

My installation is in the LBT folder. So i don’t have it at C:.
But what i notice now is thatin my CSharp/openstudio directory i’m missing the openstudiolib.dll.
You know where can i get it from? The other files are there already.
Thanks @MingboPeng .
-A.

If you install the OpenStudio directly to LBT folder, you should be able to find the openstudiolib.dll under its lib folder. You can copy it to CSharp folder.
image

I’ll do.
It will not be conflicting having two installations of 3.1 at the same location (ladybugtools dir) with different names?
-A.

If you want to install the OpenStudio to LBT folder, you have to override the existing ladybug_tools\openstudio folder.

I think it will be easier to build a new installer for you, so you don’t have to deal with all of these issues.

Thanks @MingboPeng ,
Let me know if this is possible.
I was lucky to get your above response, since i was about to install OS31 on the lbt directory. Now i’ll wait to see.
-A.

Hi @AbrahamYezioro, I just uploaded to “getting_started” folder that Mostapha shared to you earlier. It works with the Ironbug, and please let me know if you have any questions.

image

Thanks a lot @MingboPeng !!
Works perfectly. Even installed the Ironbug you posted today in a this discussion.
-A.

1 Like

Hi @MingboPeng , I installed the latest Ironbug by single click installer IronbugInstaller-1.1.1.exe. The legacy Ironbug is gone, but I don’t see the new Ironbug in grasshopper either.
I installed LBT by the Pollination single click installer. And I can see the ironbug folder in the right path:

Hi @XavierZhouLadybug,

The Ironbug is already included in the Pollination single-click installer. Try to use the Pollination installer and please let me know if it works on your side.
image

1 Like

Thanks for the reply! I must have missed it when I installed the Pollination. It’s a bit strange that it doesn’t work if I don’t install them as a bundle. But now that I have both installed, do I uninstall both? and then re-run Pollination installer? Do you know how to uninstall pollination and ironbug?

Hi @XavierZhouLadybug, installing the new version of Pollination will uninstall all old versions of LBT, Pollination, and Ironbug.