Wednesday, 9 March 2011

Error 0x80070643 installing ASP.NET MVC 3 / MVC 3 setup fails


Do you get this message?

Basically from what I can tell, this update is basically a package of numerous KB updates and silently installs it.

Unfortunately, it does not display any errors that the individual installs may return.

After a bit of digging, I found the log file and this line:

Returning IDOK. INSTALLMESSAGE_ERROR [Error 1706.An installation package for the product Microsoft Visual Studio 2010 Ultimate - ENU cannot be found. Try the installation again using a valid copy of the installation package 'vs_setup.msi'.]

Why it doesn't report this, I do not know - however, all you need to do is plop in the disk, or mount the ISO and it should clear this error.

--UPDATE--

I thought it was fixed, however, this was just one error and whilst that got over one hurdle, the bigger install still failed.

After running the update once, it extracts all the individual components to a folder on your hard drive - for me, this was c:\temp\ext47334 - I was able to run every KB on its own, apart from `aspnetwebpages.msi`

This keeps failing with:

"Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: WebConfigCA_Remove, location: C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\WebConfig\WebConfigCA.exe, command: -u "

I have tried numerous solutions - manually launching that command, removing it from add/remove programs (which fails with another error), deleting the folder along with many others - but they all fail.

I have no idea what is wrong here at the moment but will update once it is sorted.



Update: As I thought this is 100% related to the "Microsoft ASP.NET Web Pages" Component.

It is now Solved! Thanks to Matt Garvenn on the ASP.Net Forums, it is down to the Visual Studio SP1 update placing trailing backslashes in two registry keys.

Steps to workaround are:

1. Remove the trailing backslash from the following registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\4.0.30319.0\Path

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ASP.NET\4.0.30319.0\Path

2. Uninstalled the old version of "Microsoft ASP.NET Web Pages".

3. Add the trailing backslash back to those keys.

4. Install MVC 3.



... I see from analytics that I get a good few visitors now but people rarely seem to leave comments - if this helps and you have a few seconds, please leave a message! (no sign up needed)
comment!

67 comments:

  1. A nasty error. Glad you found a solution. :)

    ReplyDelete
  2. Alas no love here. :-( Still poking around. Have the registry fixed, but surprised to find "Microsoft ASP.NET Web Pages" installed. Tried wmic just to be sure. Will keep thinking about it. Thanks for the post

    ReplyDelete
  3. Sorry, surprised NOT to find ASP.Net Web Pages installed.

    ReplyDelete
  4. Had similar problem. MVC 3 webinstall reported success, but failed silently in the background. Did a "repair" (from Control Panel\Programs\Programs and Features) which fixed the problem.

    ReplyDelete
  5. Helped a ton. Thanks for documenting the solution.

    ReplyDelete
  6. Thanks for your help!

    ReplyDelete
  7. When you say "Uninstall Microsoft ASP.NET Web Pages" above, do you mean Microsoft ASP.NET MVC 2? I do not see the other installed on my system.

    ReplyDelete
  8. Thanks for the tip.

    http://mickaelds.blogspot.com

    ReplyDelete
  9. Thank you for this. its been making me crazy all week.

    ReplyDelete
  10. Thanks a lot!!

    ReplyDelete
  11. Man, you saved me! I only wish I would have discovered this day before yesterday. I noticed that I couldn't get Web Pages to uninstall, but I wasn't quite this far along to figure out that a) it was the real problem and b) the obscure way to fix that issue.

    Thanks!

    ReplyDelete
  12. Great! Thank you!

    ReplyDelete
  13. Thanks for this

    It seems like MS is not using their own BCL methods: Path.Combine() ;-)


    Cheers

    ReplyDelete
  14. Thanks for that! I actually hit the problem while trying to uninstall everything related to Visual Studio after the MVC3 Tools Update completely destroyed my installation. I couldn't even uninstall "Microsoft ASP.NET Web Pages" until I did this registry edit.

    Tell you what, if I get all this reinstalled and working, I'm going back to my old habit of just reading blog posts about tech previews, and never actually installing them.

    ReplyDelete
  15. Thanks, worked like a charm :)

    ReplyDelete
  16. for me, I have to install the Mvc3 first, then add the trailing backslash.

    ReplyDelete
  17. I only had the "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\4.0.30319.0\Path" registry entry but the fix worked a treat. Thanks.

    ReplyDelete
  18. I spent 3 solid nights trying to fix this. thankyou so much!

    ReplyDelete
  19. Awesome, cheers for the solution

    ReplyDelete
  20. Thanks, It really helpful after wasting a lot time.

    Mihir Vinchhi

    ReplyDelete
  21. You are a genius man!! A life saver! Why didn't I google this before?? Thanx a bunch my friend :)

    ReplyDelete
  22. Thank you! I was just about to give up on installing MVC 3.

    ReplyDelete
  23. Worked like a charm!

    Thanks a lot!

    I ended up to reinstall VS2010 and Sp1 before i found your blog post. Have it bookmarked now in case I need to find problem to another solution :)

    ReplyDelete
  24. Thanks a lot for the solution I had spent almost 4 days trying to fix

    ReplyDelete
  25. I hope it will help

    ReplyDelete
  26. worked for me as well. Thanks alot!

    ReplyDelete
  27. It works like a charm! Thanks!

    ReplyDelete
  28. Thanks for this! (especially Matt Garvenn's registry advice). Shame we have to mess with the registry, but at least it works :)

    ReplyDelete
  29. Error 0x80070643 was resolved for me when the MVC 3 installer found the VS2010 installation directory in the exact location where I first installed VS2010. See below for more details.

    After I installed VS2010 for the first time, I nuked the installation directory. Turns out the MVC 3 installer was downloading a VS2010 patch (KB2483190-x86) and attempting to apply it to VS2010 using the same directory location used for the initial VS2010 installation.

    To resolve error 0x80070643, I simply re-expanded the VS2010 Prof ISO to the exact same location used for the initial VS2010 install (not the VS2010 SP1 install, the initial VS2010 install), then re-ran the MVC3 install. It worked with no other changes.

    Btw, none of the registry changes and other twists worked for me. Hope this helps someone! Gus

    ReplyDelete
  30. Worked for me too (with the registry changes) when updatig vs11.
    Thanks
    Mike

    ReplyDelete
  31. hi,
    i also faced this problem again and again, this article helped me alot. i fixed this error. Thanks for sharing this article.

    ReplyDelete
  32. You're a live saver

    ReplyDelete
  33. Fixed my problem! You rock. No idea how long it would have taken me to figure this one out.

    ReplyDelete
  34. was trying to install web matrix for a tutorial on orchard cms (http://www.krisvandermast.com/downloads.html) and couldn't get past the install of ASP Web Pages 1....

    Thank you so much!

    ReplyDelete
  35. Thank you so much! I've been pulling my hair out for hours over this.

    ReplyDelete
  36. Thanks a lot, you saved me the day

    ReplyDelete
  37. Thanks a lot, this saved realy mutch time to me!
    Eventualy you could document how to change the registry-value, so everyone culd do it as fast as possible.

    Thanks for this!

    ReplyDelete
  38. Had the same error as this but a slightly different problem. Your post was extremely helpful in solving my problem. Thank you very much for your help!

    ReplyDelete
  39. Error 0x80070643 and Error 1310 appeared while installing ASP.NET but i fixed it after taking help from this post. I fixed the error that i faced.

    ReplyDelete
  40. I removed the trailing backslash and ran the installer again. Thanks for posting the fix. I see that its working great more than a year later. Kudos to you and thumbs down to MS for not fixing their installer.

    ReplyDelete
  41. Hi this didnt work for me please help I need to get running with mvc3 as soon as possible for a team project im the only one with ms issues!

    first I got the following log in the installation failed log:

    Log File C:\Users\FEELIN~1\AppData\Local\Temp\Microsoft ASP.NET MVC 3_20120423_232114631-MSI_AspNetWebPages.msi.txt does not yet exist but may do at Watson upload time
    Calling MsiInstallProduct(c:\temp\ext46220\AspNetWebPages.msi,
    Returning IDOK. INSTALLMESSAGE_ERROR [The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2753. ]
    MSI (c:\temp\ext46220\AspNetWebPages.msi) Installation failed. Msi Log: Microsoft ASP.NET MVC 3_20120423_232114631-MSI_AspNetWebPages.msi.txt
    PerformOperation returned 1603 (translates to HRESULT = 0x80070643)



    After installing ASP.NET Webpages and ASP.NET Webpages 2 (removing trailing backslash before and adding back on after), then I get this error in my log:

    Log File C:\Users\FEELIN~1\AppData\Local\Temp\Microsoft ASP.NET MVC 3_20120423_234013642-MSI_AspNetWebPages.msi.txt does not yet exist but may do at Watson upload time
    Calling MsiInstallProduct(c:\temp\ext46220\AspNetWebPages.msi,
    Returning IDOK. INSTALLMESSAGE_ERROR [There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. ]
    MSI (c:\temp\ext46220\AspNetWebPages.msi) Installation failed. Msi Log: Microsoft ASP.NET MVC 3_20120423_234013642-MSI_AspNetWebPages.msi.txt
    PerformOperation returned 1603 (translates to HRESULT = 0x80070643)


    I had the VS2010 ultimate ISO mounted the whole time and still nothing. Been going at this for hours would really appreciate some help. Thanks

    ReplyDelete
  42. I got it resolved using the installer "ASP.NET MVC3 with Tools" from the link below worked!
    Before I was using "AspNetMVC3Setup.exe" and that didnt work.

    http://www.asp.net/downloads

    ReplyDelete
    Replies
    1. This worked for me as well - didn't have to alter registry keys :P

      Delete
    2. it works for me too. Thanks

      Delete
  43. I really have to thank you on this one. Two days waisted cause my Azure environment couldn't get installed due to this kind of foolish bug....
    Tnx again!
    Javi

    ReplyDelete
  44. Great help. Thanks!

    ReplyDelete
  45. Thank you very much!

    ReplyDelete
  46. Excellent solution. very much appreciated for your hard work to find a solution like this. !!!!

    ReplyDelete
  47. Yay, fixed it. Love you!

    ReplyDelete
  48. very helpful thanks!

    ReplyDelete
  49. If I ever wondered what my backside looks like, now I know. Because I have been chasing it for a couple of days. Seriously who would have gotten this on their own. I blamed everything and was on the verge of a reinstall (new machine anyway, just more time). Thanks!

    ReplyDelete
  50. I stand corrected...this DIDN'T work for me, but this did.
    http://mikaelkoskinen.net/asp-net-mvc-3-tools-update-installation-problems-0x80070643/
    "Remove/Uninstall "Nuget" file from control panel and then install MVC 3 using "AspNetMVC3ToolsUpdateSetup" from asp.net site.....That's it!"

    ReplyDelete
  51. Great beat ! I would like to apprentice while you amend your
    site, how can i subscribe for a blog website? The account aided me
    a acceptable deal. I were tiny bit acquainted of this your broadcast provided vibrant clear idea

    Feel free to visit my site ... wiki.beagleboard.de

    ReplyDelete
  52. Greate post. Keep writing such kind of information on your site.
    Im really impressed by it.
    Hi there, You've done an excellent job. I will certainly digg it and in my view suggest to my friends. I'm
    sure they will be benefited from this web site.


    Feel free to visit my blog :: http://soulforce-records.com/new-fashion-trends-with-cheap-asian-clothing/

    ReplyDelete
  53. If you desire to get much from this piece of writing then you have to apply such techniques to your won webpage.


    My site http://bestmoneysavingdeals.com/japanese-korean-fashion-clothing-sets-the-trend-this-season/

    ReplyDelete
  54. Hello

    It's working for me.

    Still couldn't understand logic behind do this.

    If any once can update logic behind doing this.

    Thanks

    ReplyDelete
  55. Fantastic. Thank you very much.

    ReplyDelete
  56. Thank you very much. This saved my MVC4 installation too.

    ReplyDelete
  57. Found this solution on other websites as well, anyway, I followed your steps.
    Thank you!

    ReplyDelete
  58. Previous to we all include exactly how Garcinia Cambogia may help you obtain your targets, we need to point out in which it's rewards may merely possibly be encountered any time drawn in the proper dosage is actually a high quality, natural supplier designed relative to your professional medical scientific tests. Anything at all a lot less than your recommended measure of quality Garcinia Cambogia should have very little to help not any affect your end result. weight loss tips

    ReplyDelete