Wednesday, September 2, 2015

.NET 4.5 Framework Initialization Error

Today while trying to run an application on a server I got the below error.















By default Visual Studio 2012 uses .Net 4.5 for as the version for build and release of projects. Even though I changed the version to .Net 4.0 and rebuilt the application and copied to the server I still was getting the error.

The reason I was still getting this error was due to the runtime support still referring to .Net 4.5 framework in the App.config file.





After changing the runtime to .Net 4.0 the application ran without any error.








Other solution is to download  .Net 4.5. 

No comments: