none
Common problem with installation of Visual Studio 2010 and how you deal with them RRS feed

  • General discussion

  • How to install Visual Studio 2010 on Windows 7 64bit Ultimate

    Many users around the world have encountered many problems and errors trying to install the new version of Visual Studio (including Express edition versions). There are some common errors that anyone should be aware of. I ‘ve been trying about 3 days to install this software with no luck, until now that I figured out some sort of “cheat” in order to make this able to run onto my computer. It doesn’t mind of you are have a hardcore ultra-speed hardware or something like that…it’s all but software conflicts.

    One thing is for sure and please note that:
    Microsoft Visual Studio installation EPIC FAILS on 64bit machines. Period.

     

    First problem : Cannot install the prerequisites, so the whole installation process fails. If you try to install prerequisites manually you will get: Error 1304 Error writing to file: mfcmifc80.dll . Verify that you have access to that directory. ( image: http://img84.imageshack.us/img84/8792/error1o.png )

    To deal with this problem you must use some magic in your /Windows/System32 and /Windows/SysWOW64 .  The problem is that the mscoree.dll (x86) and mscoreei.dll (x64) have not been updated to .NET 4.03 version. Check this for yourself and you will find out that the *.dll version is .NET 2 and not .NET 4. So you must manually replace these files with the appropriate ones. The answer was originally give by a member of MSDN forums , called Wolfie and Iyla_Pan ( url: http://social.msdn.microsoft.com/profile/ilya%20pan.%20_/?type=forum&referrer=http://social.msdn.microsoft.com/Forums/en/setupprerelease/thread/150d05c4-4df4-47ec-b7a6-a66f3a55cd08 ).

    [quote]BTW here are the steps to get rid of the problem:

    1. Make sure you have installed the framework 4.0
    2. Check out the version of mscoree.dll in c:\windows\system32. If it's 2.0.50727.4927, then continue (holy sh*t Microsoft you should kill the programmer who made this stupid bug).
    3. Fiddle with permissions of this dll (Properties>>Security>>Advanced>>Change permissions>>Add>>$$Your user name$$>>OK>>OK>>OK
    4. Rename it to mscoree.dll.old
    5. (If you have windows 7 x64 then do the same in 1-3 ALSO with c:\windows\syswow64\mscoree.dll)
    6. Open the file dotNetFx40_Full_x86_x64.exe with any extractor and extract it to any folder
    7. Open the folder
    8. Find the file netfx_Core.mzz and rename it with netfx_Core.zip and open with extractor
    9. Extract the file _003_mscoree_dll_x86 (and if you have windows 7 x64 ALSO the _003_mscoree_dll_amd64)
    10. X64: Rename _003_mscoree_dll_amd64 to mscoree.dll and copy it to c:\windows\system32
    11. X86: Rename _003_mscoree_dll_x86 to mscoree.dll and copy it to c:\windows\system32
    12. X64: Rename _003_mscoree_dll_x86 to mscoree.dll and copy it to c:\windows\syswow64
    13. No restart needed. Just install the x64 prereqs and next visual studio as it was ment to be.

    [/quote]

    Please remember that even not Administrator can rename the problematic mscoree.dll and mscoreei.dll files. So you need to change both ownership and permission of those files. This is some kind of misunderstood for the most users out there. After changing the permission, then you can replace the files. The sucky part is that all ownerships are gained access by TrustedInstaller and not by Admin/root.

    Ok, now you can happily install the software.

     

    Second problem: The program breaks during loading the splash screen with a message box: The error is: The type initializer for '<Module>' threw an exception.

    Here you can find the Error Log: http://www.heypasteit.com/clip/Q15

    Ok, if you want to solve this mystery you have to follow 0xFDED user member instructions (link: http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/8d0c2be0-8472-41ff-8e0c-b3633a385eb0/ )

    [quote]
    1. Uninstall VS2010, .NET Framework 4 Extended, .NET Framework 4 Client Profile (in that order).
    2. Installed .NET Framework 4 RC
    3. Located the above files in Windows\Microsoft.NET\Framework\v4.0.30128\WPF and Windows\Microsoft.NET\Framework64\v4.0.30128\WPF and saved them to another location.
    4. Reinstalled VS2010 (this will install .NET 4 Framework Extended and Client Profile)
    5. Copied the above files into the corresponding directories of the current .NET 4 install (Windows\Microsoft.NET\Framework\v4.0.30319\WPF and Windows\Microsoft.NET\Framework\v4.0.30319\WPF)
    6. Started VS2010

    [/quote]

    The hard part is to find the NET framework 4 RC beta release. All the other part it’s just time consuming but an easy task to complete.

     

    The third and final problem you will get is this message : Exception has been thrown by the target of an invocation" error .

    I resolved this problem by installing visual studio 2010 at my laptop Vista 32bit . After you ensure the installation is successfully completed (the error log should now be empty), then copy the folder C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF and replace it with both of /Windows/Framework and /Windows/Framework64 files onto your Windows 7 64bit machine. After that I was able to finally launch the software. It seems that there is a conflict for 64bit versions. What a shame btw…

    I hope I helped you guys…

    Saturday, December 4, 2010 3:33 PM

All replies

  • Hello guys,

     

    The installation seems to break at MS Visual Studio 2010 Express Prerequisites x64. I tried to install them separately, and I got that error:

    Uploaded with ImageShack.us

     

    I am trying to install this software about two days now.... Can you help me ?

    Friday, December 3, 2010 2:04 PM
  • Hi Panos Georgiadis,

    Thank you for posting.

    Based on your screenshot, could you ensure if your account has enough permission to access files?

    Please check if your account has administrator permission. On the other hand, please check the configuration of UAC. See UAC Step-by-Step Guide: http://technet.microsoft.com/en-us/library/cc709691(WS.10).aspx

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

    Best Regards,

    Larcolais


    MSDN Subscriber Support in Forum
    If you have any feedback of our support, please contact msdnmg@microsoft.com.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Monday, December 6, 2010 6:39 AM