I get the following error:
Unable to load assembly. Error Details: System.BadImageFormatException: Failed to load file or assembly file: ... or one of its dependencies. This assembly is built using a runtime that is newer than the currently loaded runtime and cannot be loaded.
This assembly was built with .Net Framework 4.0, and I made sure that all the projects in my solution are also built with .Net Framework 4.0.
Any idea why I get the error? How can I check which frameworks are loaded into my application?
source share