Assembly exeAssembly = Assembly.Load(bytes); var entryPoint = exeAssembly.EntryPoint; var parms = exeAssembly.CreateInstance(entryPoint.Name); entryPoint.Invoke(parms, null); The exe read in the byte array does not start, throwing an exception
System.BadImageFormatException: "Failed to load file or assembly" 594432 bytes loaded from WindowsFormsApp7, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null "or one of their dependencies. An attempt was made to load a program that has the wrong format."
What could be the reason? Versions changed, exe exactly working.