为什么我无法从 Web 平台安装程序安装 ASPNET MVC2? (错误:“需要 VS2008 SP1”,但 SP1 已安装!)
我访问 http://www.asp.net/mvc/ 尝试安装 ASP.NET MVC。
我不知道,但 MVC 现在是第 2 版。
有一个漂亮的东西,称为 Microsoft“Web 平台安装程序”(WPI),它基本上是一个小型安装程序驱动程序工具,它提供了我可能想要安装的内容的菜单,在 Windows 上进行网络操作。菜单上有 ASPNET MVC2 之类的东西,还有 Drupal、PHP、Joomla 和许多其他东西。
从 http://www.asp.net/mvc/ 中,当我单击显示的链接时“安装 MVC”,它解析为 http://go.microsoft.com/fwlink/?LinkID =185037,然后弹出WPI。
但是然后!我收到一个错误对话框,上面写着“安装 ASPNET MVC2 需要 VS2008 SP1”。
但我知道我有VS2008 SP1。
什么给?
I went to http://www.asp.net/mvc/ to try to install ASP.NET MVC.
I didn't know, but MVC is now at version 2.
There's a nifty thing called the Microsoft "Web Platform Installer" (WPI) which basically is a small installer-driver tool that presents a menu of things I might want to install, to do web things on Windows. On the menu are things like ASPNET MVC2, but also Drupal, PHP, Joomla, and a bunch of other things.
From http://www.asp.net/mvc/, when I click on the link that says "Install MVC", it resolves to http://go.microsoft.com/fwlink/?LinkID=185037, which then pops up the WPI.
But Then! I get an error dialog that reads "Installing ASPNET MVC2 requires VS2008 SP1".
But I know that I have VS2008 SP1.
What gives?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我环顾四周,发现了建议 [1,2] 手动修改注册表,具体是
将SP、SPIndex和SPName的值设置为0、0和" SP1”,以允许 SP1 检查成功。
但我不喜欢这个答案。我确定我已经安装了VS2008 SP1;有些事情不太对劲。像这样修改注册表可能会导致配置不受支持,并且将来的补丁可能无法工作等等。这是一个坏主意。
我进一步查看找到了卸载 VS2008 Integrated Shell 的建议。我这样做了,然后能够通过 Web 平台安装程序安装 ASPNET MVC2。我认为 shell 是与 VS 2008 SDK 一起安装的。
显然,MVC2 安装程序会查看是否安装了任何未更新到 SP1 的 VS 产品,如果发现则拒绝安装。 VS Integrated Shell 就是其中之一。尽管它是在我安装 VS2008 SP1 之前安装的,但集成 shell 并未升级到 SP1 - 至少根据与集成 shell 关联的注册表设置没有升级。删除集成外壳允许 MVC2 安装继续进行。对于那些愿意这样做的人来说,直接编辑注册表而不卸载集成外壳也可以成功安装 MVC2。
也许这会帮助别人。
I looked around and found suggestions [1, 2] to manually modify the registry, specifically
to set values SP, SPIndex and SPName to 0, 0, and "SP1", respectively, to allow the check for SP1 to succeed.
But I didn't like that answer. I'm sure I have VS2008 SP1 installed; something isn't quite right. Modifying the registry like that is likely to result in an unsupported configuration, and future patches might not work, etc. It's a bad idea.
I looked further and found a suggestion to uninstall the VS2008 Integrated Shell. I did that, and then was able to install ASPNET MVC2 via the Web Platform Installer. I think the shell was installed with the VS 2008 SDK.
Apparently the MVC2 installer looks to see if there are any VS products installed that are not updated to SP1, and refuses to install if any are found. VS Integrated Shell is one of those things. Though it was installed prior to me installing VS2008 SP1, the integrated shell did not get upgraded to SP1 - at least not according to the registry settings associated to the integrated shell. Removing the integrated shell allows the MVC2 install to proceed. For those who are happy to do so, Editing the registry directly, without uninstalling the integrated shell, also allows install of MVC2 to succeed.
Maybe this will help someone else.
我能够使用 WPI 进行安装,因此您可能需要打开 VS08 并检查版本号是否为“9.x.xxxxx.x SP”,以便 100% 确定。
同时,除非有特殊原因需要使用 WPI 安装,否则您仍然可以直接下载可执行文件并尝试。此处提供:http://go.microsoft.com/fwlink/?LinkID=157074< /a>
I was able to install with the WPI, so you might want to open up VS08 and check the version number is "9.x.xxxxx.x SP" just to be 100% sure.
In the mean time, unless there's a particular reason you need to install with WPI, you can still directly download the executable and try that. It's available here: http://go.microsoft.com/fwlink/?LinkID=157074
我通过手动将 SP1 安装到 VS2008 来解决这个问题。
我只是从这里下载了安装文件:
http://www.microsoft.com/downloads/details.aspx microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en 安装后我能够安装 MVC 2,没有任何问题。
//特约克
I was able to get around this by manually installing SP1 to my VS2008.
I simply downloaded the installation files from here:
http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en and after installation I was able to install MVC 2 without any problems.
//Tjock