G
Guest
Hello!
I have a serializationEception. Impossible to deserialize the object.
I have try with app.AssemblyResolve but i have not found the solution.
My purpose is to launch my program directly from the memory.
// Bhe bytes in the assembly.
byte[] byteload = null;
// Open the file stream and read the bytes.
using (FileStream fs = new FileStream(@"C:\Documents and
Settings\Berdoues\Mes documents\Visual Studio
Projects\Application_Test_WindowsForm\LoadAssembly\CaptureControl.exe",FileMode.Open))
{
// Create the byte array with the length.
byteload = new byte[fs.Length];
// Read the bytes.
fs.Read(byteload, 0, byteload.Length);
}
AppDomain app = AppDomain.CreateDomain("juju");
app.Load(byteload).EntryPoint.Invoke(null,null);
//app.AssemblyResolve +=new ResolveEventHandler(app_AssemblyResolve);
Thank you!
Wavemill
I have a serializationEception. Impossible to deserialize the object.
I have try with app.AssemblyResolve but i have not found the solution.
My purpose is to launch my program directly from the memory.
// Bhe bytes in the assembly.
byte[] byteload = null;
// Open the file stream and read the bytes.
using (FileStream fs = new FileStream(@"C:\Documents and
Settings\Berdoues\Mes documents\Visual Studio
Projects\Application_Test_WindowsForm\LoadAssembly\CaptureControl.exe",FileMode.Open))
{
// Create the byte array with the length.
byteload = new byte[fs.Length];
// Read the bytes.
fs.Read(byteload, 0, byteload.Length);
}
AppDomain app = AppDomain.CreateDomain("juju");
app.Load(byteload).EntryPoint.Invoke(null,null);
//app.AssemblyResolve +=new ResolveEventHandler(app_AssemblyResolve);
Thank you!
Wavemill