none
Virtual Machine With .NET v4.0.30319 - Framework Initialization Error RRS feed

  • Question

  • Hi:

    I am trying to install v4.0.30319 of the .NET Framework on a Windows Web Server 2008 R2 64 Bit virtual machine.  I have installed it several different ways but everytime I double click on aspnet_compiler.exe I receive the following error:

     

    To run this application you must first install the following versions of the .NET Framework v.4.0.30319.  Contact you application publisher for instructions about obtaining the appropriate version of the .NET Framework.

     

     

    Friday, December 9, 2011 3:50 PM

Answers

  • I obtained a new copy of Windows Server 2008 R2 and installed it. Everything works now.  I must have had a corrupt copy of Windows Server 2008 R2.

     

    • Marked as answer by Unhandled Thursday, December 15, 2011 9:10 PM
    Thursday, December 15, 2011 9:10 PM

All replies

  • Have you verified .NET Framework 4.0?

    Please verify installed Frameworks with this tool:

    http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

    Post the first 25 lines and the last 25 lines of the tool output back here.

    Sunday, December 11, 2011 2:24 PM
  • Hi Unhandled,

     

    Thank you for your post.

     

    Have you tried the tool MVP mentioned? Could you please let me know the results?

     

    If you have any other concerns, please feel free to let me know.

     

    Best Regards,


    Alexander Sun [MSFT]
    MSDN Community Support | Feedback to us
    Monday, December 12, 2011 10:12 AM
  • Here are the first 25 lines:

     

    [12/12/11,15:03:40] Beginning of new SetupVerifier activity logging session
    [12/12/11,15:03:40] Activity log file location: C:\Users\RAY~1.LAR\AppData\Local\Temp\1\setupverifier_main_12-12-11_15.03.40.txt
    [12/12/11,15:03:40] Error log file location: C:\Users\RAY~1.LAR\AppData\Local\Temp\1\setupverifier_errors_12-12-11_15.03.40.txt
    [12/12/11,15:03:40] Build created on January 17, 2011
    [12/12/11,15:03:40] Detected operating system: Windows 7 (x64)
    [12/12/11,15:03:40] Install state for .NET Framework 1.0: not installed.
    [12/12/11,15:03:40] Install state for .NET Framework 1.1: not installed.
    [12/12/11,15:03:40] Install state for .NET Framework 2.0: installed with service pack 2.
    [12/12/11,15:03:40] Install state for .NET Framework 3.0: installed with service pack 2.
    [12/12/11,15:03:40] Install state for .NET Framework 3.5: installed with service pack 1.
    [12/12/11,15:03:40] Install state for .NET Framework 4 Client: installed with no service packs.
    [12/12/11,15:03:40] Install state for .NET Framework 4 Full: installed with no service packs.
    [12/12/11,15:03:40] Not adding product '.NET Framework 1.0' because it is not currently installed
    [12/12/11,15:03:40] Not adding product '.NET Framework 1.1' because it is not currently installed
    [12/12/11,15:03:40] Not adding product '.NET Framework 1.1 SP1' because it is not currently installed
    [12/12/11,15:03:40] Not adding product '.NET Framework 2.0' because it is not currently installed
    [12/12/11,15:03:40] Not adding product '.NET Framework 2.0 SP1' because it is not currently installed
    [12/12/11,15:03:40] Not adding product '.NET Framework 3.0' because it is not currently installed
    [12/12/11,15:03:40] Not adding product '.NET Framework 3.0 SP1' because it is not currently installed
    [12/12/11,15:03:40] Not adding product '.NET Framework 3.5' because it is not currently installed
    [12/12/11,15:03:49] Starting verification for product .NET Framework 4 Full
    [12/12/11,15:03:49] Section [Files - .NET Framework 4 Client (Common)] - start parsing entries
    [12/12/11,15:03:49] File C:\Windows\Microsoft.NET\assembly\GAC_32\CustomMarshalers\v4.0_4.0.0.0__b03f5f7f11d50a3a\CustomMarshalers.dll (version 4.0.30319.1) is installed on the system
    [12/12/11,15:03:50] File C:\Windows\Microsoft.NET\assembly\GAC_32\ISymWrapper\v4.0_4.0.0.0__b03f5f7f11d50a3a\ISymWrapper.dll (version 4.0.30319.1) is installed on the system
    [12/12/11,15:03:50] File C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.Transactions.Bridge.Dtc\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Transactions.Bridge.Dtc.dll (version 4.0.30319.1) is installed on the system
    [12/12/11,15:03:50] File C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.VisualBasic.Activities.Compiler\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.Activities.Compiler.dll (version 10.0.30319.1) is installed on the system

     

    Here are the last 25 lines:

     

     

    [12/12/11,15:03:53] Section [Registry - .NET Framework 4 Full (Common)] - stop parsing entries
    [12/12/11,15:03:53] Not running action 'Registry - .NET Framework 4 Full (32-bit)' for product '.NET Framework 4 Full' because the OS condition does not match
    [12/12/11,15:03:53] Section [Registry - .NET Framework 4 Full (64-bit)] - start parsing entries
    [12/12/11,15:03:53] Section [Registry - .NET Framework 4 Full (64-bit)] - stop parsing entries
    [12/12/11,15:03:53] Section [Registry - .NET Framework 4 Full (Wow6432Node)] - start parsing entries
    [12/12/11,15:03:53] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
     Value: Install
     Expected Data: 1
     Actual Data: 1
    [12/12/11,15:03:53] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
     Value: InstallPath
     Actual Data: REGISTRY VALUE FOUND
    [12/12/11,15:03:53] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
     Value: Servicing
     Actual Data: REGISTRY VALUE FOUND
    [12/12/11,15:03:53] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
     Value: TargetVersion
     Expected Data: 4.0.0
     Actual Data: 4.0.0
    [12/12/11,15:03:53] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
     Value: Version
     Actual Data: REGISTRY VALUE FOUND
    [12/12/11,15:03:53] Section [Registry - .NET Framework 4 Full (Wow6432Node)] - stop parsing entries
    [12/12/11,15:03:53] Processing custom action 'Custom Action - .NET Framework 4.0 test application'
    [12/12/11,15:03:53] ExecutablePath = 'Netfx40TestApplication.exe'
    [12/12/11,15:03:53] FriendlyName = '.NET Framework 4 test application'
    [12/12/11,15:03:53] TimeoutSeconds = '300'
    [12/12/11,15:03:53] WaitOnExit = 'true'
    [12/12/11,15:03:53] Silent = 'true'
    [12/12/11,15:03:53] Launching process 'Netfx40TestApplication.exe' now
    [12/12/11,15:03:53] Process successfully launched. Waiting 300 seconds for it to complete.
    [12/12/11,15:03:53] ****ERROR**** Process 'Netfx40TestApplication.exe' exited with return code -2146232576
    [12/12/11,15:03:53] ****ERROR**** Verification failed for product .NET Framework 4 Full

    When I click on the ASP.NET compiler (aspnet_compiler) in the 4.0.30319 directory I receive the error:

     

    To run this application, you first must install one of the following versions of the .NET Framework:

    v4.0.30319......

     

     

    Monday, December 12, 2011 11:08 PM
  • The last few lines of the verifier output says it all. Your installation of .NET Framework 4.0 is corrupt. That's why you see the error you see.

    Normally, I'd be telling you to completely remove the .NET Framework 4.0 using Add/Remove and the .NET Framework Cleanup tool, etc.

    http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx

    Then clear your %temp% directory and disable your AV software before running the .NET Framework 4.0 standalone installer As Administrator:

    http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17718

    However, as all this is on a VM, I'd recreate a new VM from scratch if it were my problem.

    Tuesday, December 13, 2011 12:16 AM
  • Hi. Thanks for your help.

    One question, if there is AV software running on the machine that is running the VM, does that matter? My VM has no AV software running.

    Tuesday, December 13, 2011 3:46 PM
  • No, you don't need to be concerned if there is no AV software on the VM itself. The installer is running on the VM, correct?
    • Marked as answer by Unhandled Tuesday, December 13, 2011 8:21 PM
    • Unmarked as answer by Unhandled Tuesday, December 13, 2011 11:20 PM
    Tuesday, December 13, 2011 7:21 PM
  • Yes, the .NET 4.0 installer is running on the VM.
    Tuesday, December 13, 2011 8:21 PM
  • I have installed 4 VM's, all with the same error. Could it be a resource problem?  I am allocating 2 GB of RAM and 30 GB of disk space. The aspnet_compiler under the 4.0.30319 directory still throws an initialization error. 
    Tuesday, December 13, 2011 11:25 PM
  • Hi Unhandled,

     

    Please check if the Windows Web Server 2008 R2 is installed as Server Core Role. If it is, I recommend you use the Full installation.

     

    Second, please run this tool on your virtual machine to collect the installation logs: http://www.microsoft.com/downloads/details.aspx?FamilyID=e0da314f-6216-4a18-bc6b-7d29cf83af20&displaylang=en

    Upload the vslogs.cab file located in %temp% folder to an open website like Windows Live SkyDrive or send it to me (E-mail: v-alsun_at_microsoft_dot_com).

    Note: Please attach the link of this post in the mail.

     

    If you have any other concerns, please feel free to let me know.

     

    Best Regards,


    Alexander Sun [MSFT]
    MSDN Community Support | Feedback to us
    Wednesday, December 14, 2011 8:30 AM
  • Hi:

    How do I check if the Windows Web Server 2008 R2 is installed as a Server Core Role?

    Wednesday, December 14, 2011 2:54 PM
  • Hi:

    I ran the tool you suggested and cannot find any vslogs.cab file in my %temp% directory.

    Wednesday, December 14, 2011 3:21 PM
  • Hi Unhandled,

     

    Maybe the %temp% folder was cleaned up after the virtual machine restarted. Please uninstall .NET Framework 4 first, then reinstall it. After the reinstall, run the collect.exe to collect the fresh logs on your virtual machine.

     

    I hope this helps.

     

    Best Regards,


    Alexander Sun [MSFT]
    MSDN Community Support | Feedback to us
    Thursday, December 15, 2011 9:23 AM
  • Actually, I found out why I couldn't find the file.  The file type was hidden.  I sent a copy of the file to the e-mail address you listed in your response.  I'm new to SkyDrive and have also posted the file there but I'm not sure if you can find it.
    Thursday, December 15, 2011 5:13 PM
  • I obtained a new copy of Windows Server 2008 R2 and installed it. Everything works now.  I must have had a corrupt copy of Windows Server 2008 R2.

     

    • Marked as answer by Unhandled Thursday, December 15, 2011 9:10 PM
    Thursday, December 15, 2011 9:10 PM