Page 1 of 1

HostNetworkInterfaces - TypeLoadException

Posted: 18. Jul 2017, 13:15
by Benne
Hi,

I'm playing around with the API to start and stop Virtualbox with C#. All is running fine, but now I tried the following:

Code: Select all

VirtualBox.VirtualBox vb = new VirtualBox.VirtualBox();
IHost ihost = vb.Host;
HostNetworkInterfaceType t = HostNetworkInterfaceType.HostNetworkInterfaceType_HostOnly;
ihost.FindHostNetworkInterfacesOfType(t);
This results in a TypeLoadException for the type VirtualBox.IHostNetworkInterface.
Anyone ever had such an issue?

I'm running VBox 5.1.22 on Win 7, but same result on Win 10.

Thanks in advance.
Kind regards
Ben

Re: HostNetworkInterfaces - TypeLoadException

Posted: 22. Jul 2017, 03:46
by noteirak
Please provide all the required information as per posting guildelines.
I have a feeling there is some kind of missmatch somewhere...