none
.NET Framework Runtime Error

    Question

  • I been attempting to play a game called Terraria that needs Microsoft .NET Framework 4 and XNA to work.  I purchased this game back in March and had  no issues running the game up unto recently.
     
    I originally received no error message. Every time I tried clicking play, the "Preparing to launch Terraria" window would come up then disappear after a few seconds.  Now, like before, I receive no alert.
     
    I've tried:
     
    Unistalling and reinstalling Terraria
    Right clicking Terraria and verifying intergrity of game cache (always a successful validation)
    Defragment cache files
    Unistalling and reinstalling Steam (the platform the game runs off)
    Unistalling and reinstalling both Microsoft .NET Framework 4 and XNA 4
    Run Terraria.exe directly
    Run Steam and Terraria.exe via administrator access
     
    Please note:  I cannot reinstall Microsoft .NET Framework 4 without renaming the assembly folder in the Windows/Microsoft.Net folder.
     
    The error message I received only once was:
    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: Terraria.exe
    Application Version: 1.0.4.0
    Application Timestamp: 4ed7f1e4
    Fault Module Name: KERNELBASE.dll
    Fault Module Version: 6.1.7601.17651
    Fault Module Timestamp: 4e211319
    Exception Code: e0434352
    Exception Offset: 0000b9bc
    OS Version: 6.1.7601.2.1.0.768.3
    Locale ID: 1033
    Additional Information 1: 0a9e
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional Information 3: 0a9e
    Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
     
    My system specs are:
    Windows 7 Home Premium
    Manufacturer: HP
    Processor: AMD Athlon(tm) II X2 250 Processor 3.00 GHz
    Installed memory (RAM): 5.00 GB (4.75 GB usable)
    System type: 64 bit Operating System
    ATI Radeon 3000 Graphics
    Realtek High Definition Audio
     
    I ran SFC.EXE /SCANNOW and it came out clear.
     
    I ran eventvwr and it states:
    Faulting application name: Terraria.exe, version: 1.0.4.0, time stamp: 0x4ed7f1e4
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e211319
    Exception code: 0xe0434352
    Fault offset: 0x0000b9bc
    Faulting process id: 0xae4
    Faulting application start time: 0x01ccb2dc53134335
    Faulting application path: c:\program files (x86)\steam\steamapps\common\terraria\Terraria.exe
    Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
    The error messages noted: .NET Runtime Optimization Service Error, Application Error and .NET Runtime Error
     
    Thank you for your assistance.
    • Edited by PeterJRod Monday, December 05, 2011 11:02 PM
    Monday, December 05, 2011 10:44 PM

Answers

  • The fact that the .NET Framework installs and verifies, but is corrupt after Windows Update attempts and a restart, tells me that you have Windows Installer issues that will require repair or reinstallation of your OS.

    The issues only appear after the WU failed attempt and restart, correct?

    For best help with Windows Update or Windows 7 repair, the best place to ask is in the Microsoft Answers forums for Windows 7:

    http://answers.microsoft.com/en-us/windows/forum/windows_7

    • Marked as answer by Alexander Sun Monday, December 19, 2011 9:38 AM
    Thursday, December 08, 2011 1:30 AM
  • I also find error like this:

    Failed to internally open package. [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]

    I agree with pvdg42 that you should repair your OS.

    So do a repair install following this tutorial http://www.sevenforums.com/tutorials/3413-repair-install.html  


    Thursday, December 08, 2011 6:17 AM
    Moderator
  • The fact that the .NET Framework installs and verifies, but is corrupt after Windows Update attempts and a restart, tells me that you have Windows Installer issues that will require repair or reinstallation of your OS.

    The issues only appear after the WU failed attempt and restart, correct?

    For best help with Windows Update or Windows 7 repair, the best place to ask is in the Microsoft Answers forums for Windows 7:

    http://answers.microsoft.com/en-us/windows/forum/windows_7

    Correct, the issue only appeared after a WU failed attempt and restart.  I've been grappling with the idea of doing a System Recovery, but I will attempt to repair my OS via Barry's suggestion.  Thank you.
    • Marked as answer by Alexander Sun Monday, December 19, 2011 9:38 AM
    Thursday, December 08, 2011 2:05 PM

All replies

  • This is not the first post here regarding Terreria issues.

    You can verify your .NET Frameworks with this tool:

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

    Please post the first 25 lines and last 25 lines of the output here.

    If your .NET Frameworks check out OK, then you might ask in the Terreria tech support forum, here:

    http://www.terrariaonline.com/forums/technical-support.42/

    Tuesday, December 06, 2011 12:40 AM
  • First off, thank you for getting back to me.

    I ran a product verification for .NET Framework 4 Client and it failed.  Here are the first and last 25 lines.

    ======================================================================
    [12/05/11,21:27:53] Beginning of new SetupVerifier activity logging session
    [12/05/11,21:27:53] Activity log file location: C:\Users\DoPe\AppData\Local\Temp\setupverifier_main_12-05-11_21.27.53.txt
    [12/05/11,21:27:53] Error log file location: C:\Users\DoPe\AppData\Local\Temp\setupverifier_errors_12-05-11_21.27.53.txt
    [12/05/11,21:27:53] Build created on January 17, 2011
    [12/05/11,21:27:53] Detected operating system: Windows 7 (x64)
    [12/05/11,21:27:53] Install state for .NET Framework 1.0: not installed.
    [12/05/11,21:27:53] Install state for .NET Framework 1.1: not installed.
    [12/05/11,21:27:53] Install state for .NET Framework 2.0: installed with service pack 2.
    [12/05/11,21:27:53] Install state for .NET Framework 3.0: installed with service pack 2.
    [12/05/11,21:27:53] Install state for .NET Framework 3.5: installed with service pack 1.
    [12/05/11,21:27:53] Install state for .NET Framework 4 Client: installed with no service packs.
    [12/05/11,21:27:53] Install state for .NET Framework 4 Full: installed with no service packs.
    [12/05/11,21:27:53] Not adding product '.NET Framework 1.0' because it is not currently installed
    [12/05/11,21:27:53] Not adding product '.NET Framework 1.1' because it is not currently installed
    [12/05/11,21:27:53] Not adding product '.NET Framework 1.1 SP1' because it is not currently installed
    [12/05/11,21:27:53] Not adding product '.NET Framework 2.0' because it is not currently installed
    [12/05/11,21:27:53] Not adding product '.NET Framework 2.0 SP1' because it is not currently installed
    [12/05/11,21:27:53] Not adding product '.NET Framework 3.0' because it is not currently installed
    [12/05/11,21:27:53] Not adding product '.NET Framework 3.0 SP1' because it is not currently installed
    [12/05/11,21:27:54] Not adding product '.NET Framework 3.5' because it is not currently installed
    [12/05/11,21:27:55] Starting verification for product .NET Framework 2.0 SP2
    [12/05/11,21:27:55] Section [Files - .NET Framework 2.0 (Common)] - start parsing entries
    [12/05/11,21:27:55] File C:\Windows\system32\mscoree.dll (version 4.0.40305.0) is installed on the system
    [12/05/11,21:27:55] File C:\Windows\system32\dfshim.dll (version 4.0.40305.0) is installed on the system
    [12/05/11,21:27:55] File C:\Windows\system32\mscorier.dll (version 2.0.50727.5420) is installed on the system
    [12/05/11,21:27:55] File C:\Windows\system32\mscories.dll (version 2.0.50727.5420) is installed on the system
    [12/05/11,21:27:55] File C:\Windows\system32\MUI\0409\mscorees.dll (version 4.0.40305.0) is installed on the system

    and

     Value: v4.0.30319
     Expected Data: 4095
     Actual Data: 4095
    [12/05/11,21:30:46] Key: HKLM\SOFTWARE\Microsoft\.NETFramework\policy\standards\Standard CLI 2005
     Value: v4.0.30319
     Expected Data: 4095
     Actual Data: 4095
    [12/05/11,21:30:46] Key: HKLM\SOFTWARE\Microsoft\.NETFramework\policy\upgrades
     Value: 4.0.30319
     Expected Data: 4.0.0-4.0.30319
     Actual Data: 4.0.0-4.0.30319
    [12/05/11,21:30:46] Key: HKLM\SOFTWARE\Microsoft\.NETFramework\policy\v4.0
     Value: 30319
     Expected Data: 30319-30319
     Actual Data: 30319-30319
    [12/05/11,21:30:46] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client
     Value: Install
     Expected Data: 1
     Actual Data: 1
    [12/05/11,21:30:46] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client
     Value: InstallPath
     Actual Data: REGISTRY VALUE FOUND
    [12/05/11,21:30:46] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client
     Value: Servicing
     Actual Data: REGISTRY VALUE FOUND
    [12/05/11,21:30:46] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client
     Value: TargetVersion
     Expected Data: 4.0.0
     Actual Data: 4.0.0
    [12/05/11,21:30:46] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client
     Value: Version
     Actual Data: REGISTRY VALUE FOUND
    [12/05/11,21:30:46] Section [Registry - .NET Framework 4 Client (Wow6432Node)] - stop parsing entries
    [12/05/11,21:30:46] Processing custom action 'Custom Action - .NET Framework 4.0 test application'
    [12/05/11,21:30:46] ExecutablePath = 'Netfx40TestApplication.exe'
    [12/05/11,21:30:46] FriendlyName = '.NET Framework 4 test application'
    [12/05/11,21:30:46] TimeoutSeconds = '300'
    [12/05/11,21:30:46] WaitOnExit = 'true'
    [12/05/11,21:30:46] Silent = 'true'
    [12/05/11,21:30:46] Launching process 'Netfx40TestApplication.exe' now
    [12/05/11,21:30:46] Process successfully launched. Waiting 300 seconds for it to complete.
    [12/05/11,21:30:46] ****ERROR**** Process 'Netfx40TestApplication.exe' exited with return code -1
    [12/05/11,21:30:46] ****ERROR**** Verification failed for product .NET Framework 4 Client

     

    Thank you.


    • Edited by PeterJRod Tuesday, December 06, 2011 2:33 AM
    Tuesday, December 06, 2011 2:32 AM
  • So, to clean up as thoroughly as possible, I suggest the following steps:
    1. Remove .NET Framework 4.0 through add/remove programs.
    2. Run this tool to identify and remove any remaining pieces of .NET Framework 4.0:

    http://cid-27e6a35d1a492af7.skydrive.live.com/self.aspx/Blog_Tools/dotnetfx_cleanup_tool.zip?sa=406286959

    3. Also, do these steps:

    I went to "C:\Windows\Microsoft.NET" there is a directory called "assembly".

    I looked in the directory and found some subdirectories with lots of old dot net 4 files. I renamed the directory assembly2 and tried to install Dot Net 4 and it worked!!!!

    (You can't delete the assembly directory unless you take ownership of it but you can rename it.)

    It seems that something was in the old "assembly" directory.

    (These steps were found and shared with us all by forums contributor 'irarab')

    4. Clear out your %temp% directory and disable your AV software.

    5. Run the standalone installer for .NET Framework 4.0 As Administrator.

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

    6. Verify the installation and report as before.

    7. If you see the ****ERROR**** Verification failed... again, please make a new vslogs.cab and share as follows.

    Please collect your install logs with this:

    http://www.microsoft.com/downloads/details.aspx?FamilyID=E0DA314F-6216-4A18-BC6B-7D29CF83AF20&displaylang=e&displaylang=en

    After you run Collect.exe, you'll find vslogs.cab in your %temp% directory. Please upload vslogs.cab to a public site, like SkyDrive, and post the link here.

    Tuesday, December 06, 2011 2:34 PM
  • I was able to reinstall .NET Framework, but not without renaming the assembly folder.  I ran the verification tool and it came back successful.  When I tried to receive some Windows Updates, thee updates failed.  I ran Microsoft Fixit and it prompt me to restart my computer.  After the reboot, the verification is now coming back as failed.

    Here is the vslogs.cab file:

    https://skydrive.live.com/#cid=E9075681B405B2AE&id=E9075681B405B2AE%21105

    Thank you.

    Wednesday, December 07, 2011 6:37 PM
  • The fact that the .NET Framework installs and verifies, but is corrupt after Windows Update attempts and a restart, tells me that you have Windows Installer issues that will require repair or reinstallation of your OS.

    The issues only appear after the WU failed attempt and restart, correct?

    For best help with Windows Update or Windows 7 repair, the best place to ask is in the Microsoft Answers forums for Windows 7:

    http://answers.microsoft.com/en-us/windows/forum/windows_7

    • Marked as answer by Alexander Sun Monday, December 19, 2011 9:38 AM
    Thursday, December 08, 2011 1:30 AM
  • I also find error like this:

    Failed to internally open package. [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]

    I agree with pvdg42 that you should repair your OS.

    So do a repair install following this tutorial http://www.sevenforums.com/tutorials/3413-repair-install.html  


    Thursday, December 08, 2011 6:17 AM
    Moderator
  • The fact that the .NET Framework installs and verifies, but is corrupt after Windows Update attempts and a restart, tells me that you have Windows Installer issues that will require repair or reinstallation of your OS.

    The issues only appear after the WU failed attempt and restart, correct?

    For best help with Windows Update or Windows 7 repair, the best place to ask is in the Microsoft Answers forums for Windows 7:

    http://answers.microsoft.com/en-us/windows/forum/windows_7

    Correct, the issue only appeared after a WU failed attempt and restart.  I've been grappling with the idea of doing a System Recovery, but I will attempt to repair my OS via Barry's suggestion.  Thank you.
    • Marked as answer by Alexander Sun Monday, December 19, 2011 9:38 AM
    Thursday, December 08, 2011 2:05 PM
  • Hi Peter,

    Have your issue fixed?

    Regards,

    Tuesday, December 13, 2011 7:12 AM
    Moderator