none
VS 2010 unoperable after installing .NET 4.5 + can't install any framework RRS feed

  • Question

  • I've faced very strange problem yesterday. My machine running Russian Windows 7 x64, with VS2010 Ultimate was alright until I've decided to try Atlassian SourceTree, which required .NET 4.5. The installation of both went smoothly, however, .NET asked me for a reboot. Since I was in the middle of debugging, I didn't. 
    Came the next morning and turned my PC on, I saw the following message from VS on top of splash screen: "Operation could not be completed. Access denied."

    Here's where the story begins.

    Next, I've tried the following (fast-forward):

    • Uninstalled .NET 4.5 and got VS2010: "Unknown error." still not passing splash screen
    • Install .NET 4.0 Full -> Got problem as here: http://superuser.com/questions/274743/problem-installing-net-framework-4-full-on-windows-7-x64
      Tried that fix. (Although there were a lot of corrupted files, I've only recovered the two mentioned in the post)
    • Tried this cleanup tool for .NET 4.5: http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx
    • Tried reinstallation of VS 2010 - fails to reinstall more than a half of prerequisites, including .NET FW 4
    • Install .NET 4.0 again -> got the same error messages as here: Error 25003 installing .NET Framework 4.0 after uninstalling 4.5 (http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/thread/2d248202-dcf8-4ff2-ad79-149d80504d88/)
    • Applied `for /F %D in ('dir %WINDIR%\assembly.....` -> no way
    • Tried .NET Framework Repair Tool (logs are here: http://yadi.sk/d/qsl5H0-X58QJE)
    • .NET cleanup for all versions -> no way
    • Procmon'ed for ACCESS DENIED, found some errors related to regtlibv12 in HKCR\Typelib - fixed permissions for SYSTEM -> no way
    • Uninstalled Framework 3.5.1
    • Tried to install Framework 3.5.1 back -> fails!


    Still I can't do anything to get it working! Could you suggest something?

    UPD: System Restore to the point before SourceTree didn't work (unfortunately, there was no point before .NET 4.5 :-)). Also, to clarify: couldn't install .NET FW 3.5.1, 4.0. However, 4.5 installs OK.

    UPD2: The problem from http://superuser.com/questions/274743/problem-installing-net-framework-4-full-on-windows-7-x64 reappears after I've reinstalled and deleted .NET 4.5 once again. It means that those files were erased again during deinstallation.


    Friday, May 24, 2013 4:02 PM

Answers

  • Finally it works!

    I've managed to find the error with Procmon by selecting "Enable advanced output". The reason was that file msvcr110_clr0400.dll in SysWOW64 had starnge security privileges set: unknown owner, full privileges were set for msiserver and System, plus entry with no rights "Owner rights" (it's loose translation from Russian, but it's not Creator-Owner). No Administrators, no Users.

    Anybody knows what may have caused this?

    UPD: There are at least two more files with similar privileges there, for example, msvcr100_clr0400.dll, msvcp110_clr0400.dll.

    UPD2: Also, very strange behavior of Procmon filters was encountered: it returned no records while I was trying to use "include" filter for result containing "DENIED". However, manual exclusion of every unwanted result helped.
    Tuesday, May 28, 2013 9:17 AM

All replies

  • Without .NET Framework 4.0, VS 2010 cannot be installed.

    You say "However, 4.5 installs OK."

    If you have 4.5, you also have 4.0, because .NET Framework 4.5 is an in-place update to 4.0.

    Please use this tool to verify the .NET 4.5 on your system:

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

    Run the tool with .NET 4.5 selected, then post the first 15 lines AND the last 15 lines of the tool log here.

    You also say "Uninstalled Framework 3.5.1". .NET 3.5.1 is embedded in the Windows 7 OS and is not user removable or user installable.

    Not knowing how you attempted to remove .NET 3.5.1, you may want to use the above tool with 3.5 selected to see if it is corrupt. Post the same sections of the tool log as above.

    Friday, May 24, 2013 8:48 PM
  • Without .NET Framework 4.0, VS 2010 cannot be installed.

    You say "However, 4.5 installs OK."

    If you have 4.5, you also have 4.0, because .NET Framework 4.5 is an in-place update to 4.0.

    Please use this tool to verify the .NET 4.5 on your system:

    ...

    You also say "Uninstalled Framework 3.5.1". .NET 3.5.1 is embedded in the Windows 7 OS and is not user removable or user installable.

    Not knowing how you attempted to remove .NET 3.5.1, you may want to use the above tool with 3.5 selected to see if it is corrupt. Post the same sections of the tool log as above.

    First of all, VS has been installed and working OK with .NET 4.0. Then, I've installed 4.5 and VS crashed during startup saying "Operation could not be completed. Access denied."

    Second, by saying that I've uninstalled .NET 3.5.1, I mean that I've opened (not sure how it reads in English version exactly) "Programs and Components -> Turn Windows Features on/off" and de-selected "Microsoft .NET Framework 3.5.1". The installation of 3.5.1 for me is just as this. Am I wrong that this effectively removes .NET 3.5.1?

    Thanks for the tool, I'll try it and will post the logs here!

    Logs for 4.5:

    ======================================================================
    [05/25/13,17:42:09] Beginning of new SetupVerifier activity logging session
    [05/25/13,17:42:09] Activity log file location: C:\Users\STARTE~1\AppData\Local\Temp\setupverifier_main_05-25-13_17.42.09.txt
    [05/25/13,17:42:09] Error log file location: C:\Users\STARTE~1\AppData\Local\Temp\setupverifier_errors_05-25-13_17.42.09.txt
    [05/25/13,17:42:09] Build created on September 10, 2012
    [05/25/13,17:42:09] Detected operating system: Windows 7 (x64)
    [05/25/13,17:42:09] For more information about repairing the .NET Framework, see http://support.microsoft.com/kb/2698555 and http://go.microsoft.com/fwlink/?LinkID=246062
    [05/25/13,17:42:09] Install state for .NET Framework 1.0: not installed.
    [05/25/13,17:42:09] Install state for .NET Framework 1.1: not installed.
    [05/25/13,17:42:09] Install state for .NET Framework 2.0: installed with service pack 2.
    [05/25/13,17:42:09] Install state for .NET Framework 3.0: installed with service pack 2.
    [05/25/13,17:42:09] Install state for .NET Framework 3.5: installed with service pack 1.
    [05/25/13,17:42:09] Install state for .NET Framework 4 Client: installed with no service packs.
    [05/25/13,17:42:09] Install state for .NET Framework 4 Full: installed with no service packs.
    [05/25/13,17:42:09] Install state for .NET Framework 4.5: installed with no service packs.
    [05/25/13,17:42:09] Windows directory: C:\Windows
    [05/25/13,17:42:09] System directory: C:\Windows\system32
    [05/25/13,17:42:09] Program Files directory: C:\Program Files (x86)
    [05/25/13,17:42:09] Common Files directory: C:\Program Files (x86)\Common Files
    [05/25/13,17:42:09] Not adding product '.NET Framework 1.0' because it is not currently installed
    [05/25/13,17:42:09] Not adding product '.NET Framework 1.1' because it is not currently installed
    [05/25/13,17:42:09] Not adding product '.NET Framework 1.1 SP1' because it is not currently installed
    [05/25/13,17:42:09] Not adding product '.NET Framework 2.0' because it is not currently installed
    [05/25/13,17:42:09] Not adding product '.NET Framework 2.0 SP1' because it is not currently installed
    [05/25/13,17:42:09] Not adding product '.NET Framework 3.0' because it is not currently installed
    [05/25/13,17:42:09] Not adding product '.NET Framework 3.0 SP1' because it is not currently installed
    [05/25/13,17:42:09] Not adding product '.NET Framework 3.5' because it is not currently installed
    
    ....
    
    [05/25/13,17:42:17] Section [Registry - .NET Framework 4 Full (Wow6432Node)] - stop parsing entries
    [05/25/13,17:42:17] Not running action 'Registry - .NET Framework 4.5 (32-bit)' for product '.NET Framework 4.5' because the OS condition does not match
    [05/25/13,17:42:17] Section [Registry - .NET Framework 4.5 (64-bit)] - start parsing entries
    [05/25/13,17:42:17] Section [Registry - .NET Framework 4.5 (64-bit)] - stop parsing entries
    [05/25/13,17:42:17] Section [Registry - .NET Framework 4.5 (Wow6432Node)] - start parsing entries
    [05/25/13,17:42:17] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
    	Value: Release
    	Actual Data:	REGISTRY VALUE FOUND
    [05/25/13,17:42:17] Section [Registry - .NET Framework 4.5 (Wow6432Node)] - stop parsing entries
    [05/25/13,17:42:17] Processing custom action 'Custom Action - .NET Framework 4.0 test application'
    [05/25/13,17:42:17] ExecutablePath = 'Netfx40TestApplication.exe'
    [05/25/13,17:42:17] FriendlyName = '.NET Framework 4 test application'
    [05/25/13,17:42:17] TimeoutSeconds = '300'
    [05/25/13,17:42:17] WaitOnExit = 'true'
    [05/25/13,17:42:17] Silent = 'true'
    [05/25/13,17:42:17] Launching process 'Netfx40TestApplication.exe' now
    [05/25/13,17:42:17] Process successfully launched. Waiting 300 seconds for it to complete.
    [05/25/13,17:42:17] Process 'Netfx40TestApplication.exe' exited with return code 0
    [05/25/13,17:42:17] Verification succeeded for product .NET Framework 4.5

    The log fo 3.5 is similar and shows the successfull verification, too.



    Saturday, May 25, 2013 11:34 AM
  • Finally it works!

    I've managed to find the error with Procmon by selecting "Enable advanced output". The reason was that file msvcr110_clr0400.dll in SysWOW64 had starnge security privileges set: unknown owner, full privileges were set for msiserver and System, plus entry with no rights "Owner rights" (it's loose translation from Russian, but it's not Creator-Owner). No Administrators, no Users.

    Anybody knows what may have caused this?

    UPD: There are at least two more files with similar privileges there, for example, msvcr100_clr0400.dll, msvcp110_clr0400.dll.

    UPD2: Also, very strange behavior of Procmon filters was encountered: it returned no records while I was trying to use "include" filter for result containing "DENIED". However, manual exclusion of every unwanted result helped.
    Tuesday, May 28, 2013 9:17 AM