This project has moved and is read-only. For the latest updates, please go here.

Compiling with .NET 3.5 crashes when running on a .NET 4 only machine.

Sep 26, 2014 at 12:49 AM
I compile with the .NET 3.5 Framework,
and run on another machine which only has .NET 4 installed,

It crashes
"Error creating window handle" in;

static class Program
static void Main()

A friend gets the following when compiling with .NET 4

An unhandled exception of type 'System.BadImageFormatException' occurred in Unknown Module.

Additional information: Could not load file or assembly 'SmibRemote.exe' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Any advice when dealing with multiple .NET versions?
Dec 23, 2014 at 12:28 PM
Hi! As far as I can tell, this Problem has nothing to do with Tftp.Net. Try compiling your app with this library and I think the error will still stay the same. However, you find lots of resources on the net if you Google for "BadImageFormatException". For example, check this link: