.Net Framework Initialization Error – Unable to find a version of the runtime to run this application

I got this error yesterday while running FxCop application from Microsoft. I think the problem was because of the .Net framework installed on my machine, I have only .Net 4.0 installed and no other versions of .Net. And I think FxCop was expecting .Net 2.0 in the system.

.Net Framework Initialization Error – Unable to find a version of the runtime to run this application

.Net Framework Initialization Error – Unable to find a version of the runtime to run this application

After few searches I found the resolution for this issue. You can add supportedRuntime tag to the application config (It will be like ApplicationName.exe.config in the same folder where application installed.) file, under startup tag, and set the attribute of the supportedRuntime as the version of the .Net Framework installed in the system.

  <supportedRuntime version="v4.0.30319" />

55 thoughts on “.Net Framework Initialization Error – Unable to find a version of the runtime to run this application

  1. Hello. I happen to stumble upon your website to search a solution for the same problem. However i am not a coder. Still your post has saved me a lot of time to get my applications fixed and up n running again. Thx!

  2. Thank you very much!


    To fix this issue, say you have a Application named “BillyBob.exe”, just create a text file called “BillyBob.exe.config” and inside that put this info:

    Save “BillyBob.exe.config” in the same directory as “BillyBob.exe” and it should work. You can test it by giving it an invalid number, such as “v7.0.30319″ and it should come up with a warning message that you do not have V7 installed, would you like to download it.

    • thanks bobby…it works perfect,, pretty easy, i’m not coder as well but the instructions were simple to follow

  3. Hey, I’m having the same problem with the program YouTubeDownloader and I have the .net framework v4.0.30319. I tried doing what you said by making a text file in the youtubedownloader folder entitled YouTubeDownloader.exe.config and in the file I put:

    Then I try reopening YouTubeDownloader.exe but it still doesn’t work. What am I doing wrong?

  4. In the file I put:
    supportedRuntime version=”v4.0.30319″
    (but with the lesser than and more than signs)

  5. Yea I get the error like the image you have above except for YouTubeDownloader:

    Unable to find a version of the runtime to run this application.

  6. The code i’m typing doesn’t seem to appear on this forum, even with the code markups, anyway, try adding the ‘configuration’ tag like this:

    -supportedRuntime version=”v4.0″ /-

    and replace the – signs with “less than” and “greater than” signs.

    Also, make sure the extension of the configuration file you created is .config and not .config.txt ! :-) in order to check that, make the file extensions visible. (to do that: In the window where the file is located, in the top menu, got to Tools-Folder options-View tab and UNcheck “Hide extensions for known file types”). Then, if the file extension is .config.txt, just remove the .txt part of it by renaming the file.

  7. Unfortunately, I still have a YouTube problem where I keep getting the error:
    An error occurred, please try again later.

    I have researched for solutions and tried everything, and I have adobe flash player 11 but my problem wasn’t solved so I tried downloading the YouTubeDownloader so that I could download the videos instead, but it didn’t work. Any ideas??

  8. Hola me aparece ese texto al querer entrar en el virtua tennis 4. no entendi como hacer para solucionarlo. Espero puedas ayudarme. Gracias!!

  9. Hello. I am trying to hook into the _corexemain function from a application that was already running. Your config file example works when you are trying to startup a .exe file written in .NET but how about if you are executing a .NET operation out of an application not written in .NET??? Is there a different config setup for this? Or is something entirely different needed? Thanks.

  10. I’ve done what Billy Bob said to do, and after that occurred to appear this error:


    The application has failed to start because its side-by-side configuration is incorrect. Please
    see the application event log or use the command-line sxstrace.exe tool for more detail.

  11. I got another problem: ArcaneMS.exe – .NET Framework Initialization Error “Unable to find a version of the runtime to this application” can someone help me? I’m on a Windows XP SP2.

  12. I’m running in to the same problem and am unable to solve it by going through the steps above. I have downloaded this file from the MS website: dotNetx40_Full_x86_x64 Iam assuming that this is a .exe file and this is located in a folder called Softwares on my D drive. What I did was opened Notepad and copied this code on to it:

    Then I went ahead to save it, deleted the .txt extension that comes automatically and saved the file as “dotNetx40_Full_x86_x64.exe.config” (without the quotes) and put it in the Softwares folder of my D drive where the downloaded file is located.
    But am still running in to the same error. What am I doing wrong here?
    The “dotNetx40_Full_x86_x64.exe.config” (without the quotes, that is) appears a Text Document when I click on it’s Properties and it says the document opens with Notepad.
    Am I doing something wrong with the saving of the file?
    I also checked in C:\WINDOWS\Microsoft.NET\Framework\ and there is a folder named v4.0.30319 there. So there is no doubt about the version installed.
    Pl help me.

    • Something is missing from my post above. What I put in the Notepad was:
      -supportedRuntime version=”v4.0″ /-

      I did replace the hyphens with lesser than & greater than symbols.

      I did realize that I had made a mistake saving the file as Adrien had mentioned above. So, I did as he has suggested and now the file “dotNetx40_Full_x86_x64.exe.config” (without the quotes) shows as a CONFIG file and is located in the Softwares directory of my D drive.

      Still, I keep running in to the same error. What could I be doing wrong??

  13. OK…I could not get any dumber than this even if I tried very hard…I got it.
    I created another config file with the name of the application this time and got it to work.
    Thanks to the author of this post and all other people who have posted replies here for your help- it was my dumbness that prevented me from understanding it the first time.
    Sorry for the posts- I have a hole where my head should be :-)

  14. if this only for installed programs, if some programs (ex: Sharecashdownload.exe) those are without installing it can run. But those errors are showing. How we can solve. Plz any one can solve this problem.

  15. ok, 1 problem!!! you explain what to do but you DID NOT explain how to add that support tag!!! I AM TOTALLY LOST!!!

    • Which support tag? I didn’t get you. The modification required is like this

      <?xml version=”1.0″?>
      <supportedruntime version=”v4.0″/>

  16. I copied the code into notepad but it didn’t work! now I get this error!
    “the application failed to start because the application configuration is incorrect”

    what am I doing wrong

    • It should be like this. And make sure it a valid XML file.

      <?xml version=”1.0″?>
      <supportedruntime version=”v4.0″/>

  17. Sir Anuraj P help please..

    I want to play Minecraft but trying to open it, says
    “Unable to find a version of the runtime to run this application”

    Trying to look for the “Minecraft.exe.config” theres no file like that in Minecraft folder..

    please help..

  18. ok i manage to make the config file and has this lines:

    now my problem is this:

    This application has failed to start because the application configuration is incorrect.

  19. “To fix this issue, say you have a Application named “BillyBob.exe”, just create a text file called “BillyBob.exe.config” and inside that put this info:

    Save “BillyBob.exe.config” in the same directory as “BillyBob.exe” and it should work.”

    What info? Those two lines are blank here.


  20. Hi All,
    I got stuck in the same problem.
    Even after installing Dot Net framework 4.0 and adding section, my application – “Vai Vocabulary” failed to start. Now it gave this familiar error message – ViaVocabulary has encountered a problem and needs to close. We are sorry for the inconvenience.
    1. Send Error Report
    2. Don’t send.

    Please help me out.

  21. Hi.I have a problem like this too.My OS is Windows XP SP2 updated on SP3…I have installed on my PC Microsoft NET Framework v4.0.30319 and I try to open a Metin2 Patcher but I cannot.It give me this:
    “Metin2.exe – .NET Framework Initialization Error”
    “Unable to find a version of the runtime to run this application.”

    If i install NET Framework v3.5 and keep v4.0.30319 also,it shows to me this: “Metin2.exe has encountered a problem and needs to close.We are sorry for the inconvenience”
    HELP me please!thank you!

    • @aLexzu Which version of .net framework this application requires? If it is .Net 3.5, it should not create any problem. Try modify your app.config file as per the post. Hope it helps.

  22. Thanks a lot! I was having trouble here in México, Feb 2013, trying to make work the Determinacion_IMSS_2013.exe

    That application is mandatory for all bussiness here in México, it must be used to show IMSS the “Prima de Riesgo”… this very month …

    First, computer only had Service Pack 2, and in order to make work the Framework 4.0 you need to have installed Service Pack 3… checked

    Still not working. Installing and desinstalling FrameWork… same error:
    ” Net Framework Initialization Error – Unable to find a version of
    the runtime to run this application ”

    I googled and got to this site, with notepad, I created a file with the same name that the application:

    with this content:

    And finally the application is working :)

    Note, the .NetFramework that I installed is dotNetFx40_Full_x86_x64.exe
    the version of the file is 4.0.30319.1
    but in the file I just put
    and that works.

    Thansk again!

Leave a Reply

Your email address will not be published. Required fields are marked *



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>