Unhandled Exception System.DllNotFoundException phidget21

Supporting Visual Studio on Windows
Habitat
Phidgetsian
Posts: 5
Joined: Tue Mar 18, 2014 3:22 am
Contact:

Unhandled Exception System.DllNotFoundException phidget21

Postby Habitat » Sun Nov 15, 2015 3:23 pm

To cut a long story short: I am using debian 8 with mono 4 on a SBC3.

Everything works great till i try to initialise the interface object (ifKit = new InterfaceKit()) then I get:
Unhandled Exception:
System.DllNotFoundException: phidget21.dll ........

This even happens with the Phidgets InterfaceKit examples!

Any ideas that would provide a solution to this problem would be greatly appreciated!

User avatar
Patrick
Lead Developer
Posts: 3064
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Unhandled Exception System.DllNotFoundException phidget2

Postby Patrick » Mon Nov 16, 2015 10:22 am

You may need to create a Phidget21.NET.dll.config file to map the dll - see http://www.phidgets.com/docs/Language_-_C_Sharp#OS_X for an example of doing this on OSX - the difference being that the phidget21.dll map on linux would be to /usr/lib/libphidget21.so

-Patrick

Habitat
Phidgetsian
Posts: 5
Joined: Tue Mar 18, 2014 3:22 am
Contact:

Re: Unhandled Exception System.DllNotFoundException phidget2

Postby Habitat » Mon Nov 16, 2015 5:49 pm

Thanks Patrick,

Looks like that worked!

I had to modify it slightly by adding the ".0":
<configuration>
<dllmap dll="phidget21.dll" target="/usr/lib/libphidget21.so.0" />
</configuration>


So far so good!

Greg


Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 1 guest