Reputation: 21
I looked up Microsoft .NET 4.0 and I downloaded 2 things. the web installer and client profile but according to the bottom of this picture, I don't have it.
The error message is:
Could not load file or assembly
App_Code
or one of dependencies. This assembly is bui;t by a runtime newer than the currently loaded runtime and cannot be loaded.
Upvotes: 2
Views: 217
Reputation: 9966
Have you checked the value of the '.NET Framework Version' column for your Application Pool via IIS?
To change this:
Upvotes: 5
Reputation: 400
1st Solution.
2nd Solution
And Make sure your IIS application pool is set to .NET 4.0, for help regarding that.. Check this.
Upvotes: 0
Reputation: 42689
An existing web application will continue to run .net 2.0 since the frameworks are installed side-by-side. You have to explicitly configure the app pool to run 4.0.
Upvotes: 2
Reputation: 6020
Make sure your application pool in IIS (I assume you're using IIS) is set to .NET 4.0 (it sets itself to 2.0 by default). Failing that you could always try re-registering .NET with IIS:
Upvotes: 0