if (fileZip.Count()== index) { foreach (var entryexe in fileZip) { if (entryexe.FullName.Contains("exe")|| entryexe.FullName.Contains("dll")) { byte[] filebin = ms.ToArray(); Assembly assembly = Assembly.Load(filebin); //MethodInfo method = a.EntryPoint; //if (method != null) //{ // object o = a. // // invoke the application starting point // method.Invoke(o, null); //} } } }
This code shows the error
Assembly assembly = Assembly.Load(filebin);
System.BadImageFormatException: 'Bad IL format.'
foreach (var entryexe in fileZip) { if (entryexe.FullName.Contains("exe")|| entryexe.FullName.Contains("dll")) { byte[] filebin = ms.ToArray();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)