This assembly is built using a runtime that is newer than the currently loaded runtime and cannot be loaded

here is the fact that I have two boxes one won 2003 IIS6 server another win2008 IIS 7.0 server I have a standalone application called Util (win app) built into .net 2.0 (VS2005) trying to download .net 4.0 dll / assembly (VS2010). this required a simple setup in the application, which was supposed to create "Util.exe.config" and add the following setup

<startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> 

This basically ensures that .net 2.0 uses CLR 4.0

It works like a charm in a winserver2008 window, but screams at a message in a win2003 server.

Any ideas?

@update: .net 4.0 is installed on both machines.

+4
source share
2 answers

Reboot the machine and it worked.

0
source

look at the bottom of the yellow screen of death. he will tell you which version of the execution created the error.

Are we talking about a web application? If so, you need to change the application pool. The above setting will not affect which version of the framework the web application uses.

Simon

+2
source

All Articles