在 Windows 7 -32 位操作系统上安装 MVC3 时出错
我想在我的 Windows 7 32 位计算机上运行 MVC 3。我有 Visual Studio 2010,我可以在那里创建 ASP.NET MVC2 项目。但现在,我想在我的机器上安装 MVC 3。所以, 我尝试使用 http://www.asp.net/mvc/mvc3 链接。安装后,我在 Visual Studio 2010 项目模板中没有找到 ASP.NET MVC 3 Web 项目模板。 所以我再次从同一链接下载了离线安装程序。但是当我运行安装程序时出现错误。单击我得到的日志文件:
OS Version = 6.1.7600, Platform 2 OS Description = Windows 7 - x86 Ultimate Edition CommandLine = h:\temp\ext6142\setup.exe Using Simultaneous Download and Install mechanism Operation: Installing Package Name = Microsoft ASP.NET MVC 3 Package Version = 3.0.11209.0 User Experience Data Collection Policy: Disabled Number of applicable items: 6 Exe (h:\temp\ext6142\VS10-KB2465236-x86.exe) succeeded. MSI (h:\temp\ext6142\AspNetWebPages.msi) Installation failed. Msi Log: Microsoft ASP.NET MVC 3_20110118_142652087-MSI_AspNetWebPages.msi.txt Final Result: Installation failed with error code: (0x80070643), "Fatal error during installation. " (Elapsed time: 0 00:01:39).
I want to run MVC 3 on my Windows 7 32 Bit machine. I have Visual Studio 2010 and I can create ASP.NET MVC2 projects there. But now, I want to install MVC 3 in my machine. So,
I tried the online installation using Web Platform Installer from http://www.asp.net/mvc/mvc3 link. After installation, I didn't find the ASP.NET MVC 3 Web Project Template in my Visual Studio 2010 Project Templates.
So I again downloaded the Offline Installer from same link. But I got error when I ran the installer. Clicking on the Log file I got:
OS Version = 6.1.7600, Platform 2 OS Description = Windows 7 - x86 Ultimate Edition CommandLine = h:\temp\ext6142\setup.exe Using Simultaneous Download and Install mechanism Operation: Installing Package Name = Microsoft ASP.NET MVC 3 Package Version = 3.0.11209.0 User Experience Data Collection Policy: Disabled Number of applicable items: 6 Exe (h:\temp\ext6142\VS10-KB2465236-x86.exe) succeeded. MSI (h:\temp\ext6142\AspNetWebPages.msi) Installation failed. Msi Log: Microsoft ASP.NET MVC 3_20110118_142652087-MSI_AspNetWebPages.msi.txt Final Result: Installation failed with error code: (0x80070643), "Fatal error during installation. " (Elapsed time: 0 00:01:39).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
从 Web 平台安装后,当我想在 MVC 3 中创建新项目时,我没有在 Visual Studio 项目模板中检查所选的 .NET Framework 版本。默认 .NET Framework 为 3.5 在我机器的视觉工作室中。因此,项目模板中没有显示 MVC 3 项目模板。
而且,在不卸载现有 MVC 3 的情况下,当我再次想从离线安装程序安装 MVC 3 时,我收到了问题中提到的错误。 发生这种情况的原因可能是执行相同的安装或文件在下载时损坏或任何其他问题。
后来,从控制面板卸载 MVC 3 后,我再次运行 Web 平台安装程序来安装 MVC 3,这次我检查了所选的 .NET 版本。我选择了 .NET Framework 4 和 MVC 3 项目模板现在出现在 Visual Studio 的项目模板中。
After installing from web platform, I didn't check the selected .NET Framework Version in Visual Studio Project Template when I wanted to create a new project in MVC 3. Default .NET Framework was 3.5 in the visual studio of my machine. So MVC 3 project template wasn't showing in the project templates.
And, without uninstalling the existing MVC 3, when I again wanted to install MVC 3 from offline installer, I got the error I mentioned in my question. It may happened because either performing same installation or the file was corrupted at the time of downloading or any other issue.
Later, after uninstalling MVC 3 from control panel, I again run the web platform installer to install the MVC 3 and this time I check the selected .NET version. I selected .NET Framework 4 and MVC 3 project template is now appeared in visual studio's project templates.
我的计算机在卸载较旧的 MVC3 RC 时遇到问题。修复:
从以下注册表项中删除结尾的反斜杠:
<前><代码>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
卸载了旧版本的“Microsoft ASP.NET Web Pages”。
完整卸载说明:
http://drew-prog .blogspot.com/2010/11/how-to-uninstall-microsoft-aspnet-mvc-3.html
My computer had trouble uninstalling an older MVC3 RC. Fix:
Remove the trailing backslash from the following registry keys:
Uninstalled the old version of "Microsoft ASP.NET Web Pages".
Full uninstall instructions:
http://drew-prog.blogspot.com/2010/11/how-to-uninstall-microsoft-aspnet-mvc-3.html
无论如何,下载离线安装程序是个好主意。 Web 不关心错误消息,只显示成功。
就我而言,是 c# async CTP 阻止了安装 - 离线安装程序至少告诉我这一点:)
In any case it's good idea to download the offline installer. The web one doesn't care about error messages, and just shows success.
In my case it was c# async CTP that was blocking the installation - the offline installer at least told me so:)