|  Login

Eric Rodwell

Search Blog
 
 
      
     
Blog Archive
   
      
     
Twitter Updates
 
 
   
     
Blog Entries
 
Apr 29

Written by: Eric Rodwell
4/29/2010 12:59 PM 

After installing .NET Framework 4.0, I noticed that one of our applications we build has stopped working. Specifically users receive the following error:

[NET Framework Initialization Error] “Unable to find a version of the runtime to run this application."

To fix this problem, I had to update our application.config file (Application Name.exe.config) and add the following entry:

<configuration>
   <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v2.0.50727"/>
    <supportedRuntime version="v1.1.4322"/>
  </startup>
</configuration>

Once I saved the file and re-started the application, it started to work as expected.

Tags:

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 
 
   
     
Home | Experience | Education | Books | Community | Blog | Contact