I posted a message few weeks ago about using Assembly.Load to load an external assembly from my SD card.
Nothing is working. In the standard .NET we have Assembly.LoadFrom() which loads an assembly with the given path. In .NET MF I only have Assembly.Load(), so i use it with File.ReadAllBytes.
Yep, I’ve already looked at pyxis 2 source code, and all I found in it is the same Assembly.Load on File.ReadAllBytes, the same code as mine, I don’t see what I’m missing.
I’m thinking maybe the assembly I’m trying to load isn’t well built ? It’s a class library application, maybe I need to set some specific settings in it ?
I don’t understand why I don’t get an Exception if something is wrong.
Is this functionality even supported on Panda II ?
[quote]My Code is
Assembly.Load(File.ReadAllBytes("\SD\myAssembly.dll));[/quote]
might be a stupid question but, are you trying to load the assemblies from the .dll file? you should use the .pe file, i dont have a Panda yet, i have a Domino and:
var a = Assembly.Load(File.ReadAllBytes(@ "\SD\data\classlibtest.dll")); // <- a is null
var b = Assembly.Load(File.ReadAllBytes(@ "\SD\data\classlibtest.pe")); // <- b contains my assemblies
Doh! That would be a problem
Don’t worry we all make oversights like that…be sure to use the pe from the LE folder too…not that I ever used the wrong one :whistle: