I’m trying to load an assembly from my SD card to my Panda II but I’m facing a problem : Assembly.Load simply doesn’t seem to work.
I checked my sd card and I have the dll on it.
I tried two ways:
Assembly f = Assembly.Load(path);
FileStream fs = File.Open(path, FileMode.Open, FileAccess.Read); byte raw = new byte[fs.Length]; fs.Read(raw, 0, (int)fs.Length); fs.Close(); Assembly f = Assembly.Load(raw);
path being the path to the DLL on the SD card.
I understand that the first one isn’t working as MSDN says I need to provide a “long name” for my dll, but the second should be working.
In both cases all I get from Assembly.load is a NullReference
Has anyone tried this ?
Am I doing something wrong ?