MVC 4安装失败 - 离线或使用Web安装程序

时间:2013-11-21 21:45:46

标签: asp.net-mvc asp.net-mvc-4

我正在尝试将MVC 4安装到Visual Studio 2010中,但它仍然无法使用Web安装程序和脱机安装程序。

我已经尝试了这个问题“MVC 4 installation failure”中提到的项目,但无济于事。

Web安装程序的错误如下:

DownloadManager Information: 0 : Loading product xml from: https://go.microsoft.com/?linkid=9824573
DownloadManager Information: 0 : https://go.microsoft.com/?linkid=9824573 responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 175
Content-Type: text/html; charset=utf-8
Expires: Thu, 21 Nov 2013 20:05:20 GMT
Location: https://www.microsoft.com/web/webpi/4.6/webproductlist.xml
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
Set-Cookie: MC1=GUID=********&V=3; domain=microsoft.com; expires=Sun, 03-Oct-2010 07:00:00 GMT; path=/
X-Powered-By: ASP.NET
Date: Thu, 21 Nov 2013 20:06:20 GMT


DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/4.6/webproductlist.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Cache-Control: max-age=900
Accept-Ranges: bytes
ETag: "46991ac784e4ce1:0"
Server: Microsoft-IIS/8.0
P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
VTag: 791225631700000000
X-Powered-By: ASP.NET
X-Powered-By: ARR/2.5
X-Powered-By: ASP.NET
Date: Thu, 21 Nov 2013 20:06:20 GMT


DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\-872341423.xml.temp
DownloadManager Information: 0 : Filtering by majorOS: 6, minorOS: 1, majorSP: 1, minorSP: 0, productType: 6, architecture: x64
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/4.6/webapplicationlist.xml
DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/4.6/webapplicationlist.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Cache-Control: max-age=900
Accept-Ranges: bytes
ETag: "49f9d365cde0ce1:0"
Server: Microsoft-IIS/8.0
P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
VTag: 791225631700000000
X-Powered-By: ASP.NET
X-Powered-By: ARR/2.5
X-Powered-By: ASP.NET
Date: Thu, 21 Nov 2013 20:06:22 GMT


DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\751837351.xml.temp
DownloadManager Information: 0 : Filtering by majorOS: 6, minorOS: 1, majorSP: 1, minorSP: 0, productType: 6, architecture: x64
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/4.6/webapplicationlist.xml' after preprocessing, location on disk: 'C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\preprocessor\751837351.xml'
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/4.6/mediaproductlist.xml
DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/4.6/mediaproductlist.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Cache-Control: max-age=900
Accept-Ranges: bytes
ETag: "0bfe8cc116dce1:0"
Server: Microsoft-IIS/8.0
P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
VTag: 279888730500000000
X-Powered-By: ASP.NET
X-Powered-By: ARR/2.5
X-Powered-By: ASP.NET
Date: Thu, 21 Nov 2013 20:06:22 GMT


DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\1953942818.xml.temp
DownloadManager Information: 0 : Filtering by majorOS: 6, minorOS: 1, majorSP: 1, minorSP: 0, productType: 6, architecture: x64
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/4.6/mediaproductlist.xml' after preprocessing, location on disk: 'C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\preprocessor\1953942818.xml'
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/4.6/ToolsProductList.xml
DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/4.6/ToolsProductList.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Cache-Control: max-age=900
Accept-Ranges: bytes
ETag: "3454204a6ee1ce1:0"
Server: Microsoft-IIS/8.0
P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
VTag: 438595230500000000
X-Powered-By: ASP.NET
X-Powered-By: ARR/2.5
X-Powered-By: ASP.NET
Date: Thu, 21 Nov 2013 20:06:22 GMT


DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\-95717523.xml.temp
DownloadManager Information: 0 : Filtering by majorOS: 6, minorOS: 1, majorSP: 1, minorSP: 0, productType: 6, architecture: x64
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/4.6/ToolsProductList.xml' after preprocessing, location on disk: 'C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-95717523.xml'
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/4.6/enterpriseproductlist.xml
DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/4.6/enterpriseproductlist.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Cache-Control: max-age=900
Accept-Ranges: bytes
ETag: "a744a9fbddace1:0"
Server: Microsoft-IIS/8.0
P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
VTag: 438811431600000000
X-Powered-By: ASP.NET
X-Powered-By: ARR/2.5
X-Powered-By: ASP.NET
Date: Thu, 21 Nov 2013 20:06:22 GMT


DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\-1709116680.xml.temp
DownloadManager Information: 0 : Filtering by majorOS: 6, minorOS: 1, majorSP: 1, minorSP: 0, productType: 6, architecture: x64
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/4.6/enterpriseproductlist.xml' after preprocessing, location on disk: 'C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-1709116680.xml'
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://go.microsoft.com/?linkid=9824573' after preprocessing, location on disk: 'C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-872341423.xml'
DownloadManager Information: 0 : Getting ratings file from http://go.microsoft.com/?linkid=9752395
DownloadManager Information: 0 : Contextual entry products: MVC4VS2010_Loc
DownloadManager Information: 0 : Adding product ASP.NET MVC 4 with Language Packs (August 2012) (MVC4Vs2010_Loc) to cart
DownloadManager Information: 0 : Contextual navigation to product 'MVC4Vs2010_Loc'
DownloadManager Information: 0 : http://go.microsoft.com/?linkid=9752395 responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 203
Content-Type: text/html; charset=utf-8
Expires: Thu, 21 Nov 2013 20:05:24 GMT
Location: http://www.microsoft.com/web/handlers/WebPI.ashx?command=getatomfeedwithavgratingquery
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
Set-Cookie: MC1=GUID=********&V=3; domain=microsoft.com; expires=Sun, 03-Oct-2010 07:00:00 GMT; path=/
X-Powered-By: ASP.NET
Date: Thu, 21 Nov 2013 20:06:24 GMT


DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '21363'
DownloadManager Information: 0 : Number of bytes after possible decompression: '71682'
DownloadManager Warning: 0 : Error getting last-modified header, error code: 12150
DownloadManager Warning: 0 : HttpQueryInfoWithRetry for HTTP_QUERY_LAST_MODIFIED failed.
DownloadManager Information: 0 : Ratings file loaded successfully
DownloadManager Information: 0 : Adding product 'MVC4Vs2010_Loc'
DownloadManager Information: 0 : Adding dependency product 'MVC4Vs2010_Loc_Only
DownloadManager Information: 0 : Adding dependency product 'MVC4VS2010_Only
DownloadManager Information: 0 : Setting current install to 1
DownloadManager Information: 0 : Starting install sequence
DownloadManager Information: 0 : Downloading file 'http://download.microsoft.com/download/2/F/6/2F63CCD8-9288-4CC8-B58C-81D109F8F5A3/AspNetMVC4Setup.exe' to: H:\TEMP\tmp3847.tmp
DownloadManager Information: 0 : Content-disposition header: attachment
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '37684848'
DownloadManager Information: 0 : Number of bytes after possible decompression: '37684848'
DownloadManager Information: 0 : File 'C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\installers\MVC4VS2010_Only\82BCBAE192F8CB875C814821A536C959F85D4727\AspNetMVC4Setup.exe' already exists, deleting old copy of the file
DownloadManager Information: 0 : Moving downloaded file 'H:\TEMP\tmp3847.tmp' to: C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\installers\MVC4VS2010_Only\82BCBAE192F8CB875C814821A536C959F85D4727\AspNetMVC4Setup.exe
DownloadManager Information: 0 : Starting EXE command for product 'ASP.NET MVC 4 Installer (VS 2010)- Default Locale'. Commandline is: 'C:\Users\********\AppData\Local\Microsoft\Web Platform Installer\installers\MVC4VS2010_Only\82BCBAE192F8CB875C814821A536C959F85D4727\AspNetMVC4Setup.exe /q /log H:\TEMP\MVC4VS2010_Only_install.htm'. Process Id: 2192
DownloadManager Information: 0 : Install exit code for product 'ASP.NET MVC 4 Installer (VS 2010)- Default Locale' is '-2147023293'
DownloadManager Error: 0 : Install return code for product 'ASP.NET MVC 4 Installer (VS 2010)- Default Locale' is Failure
DownloadManager Information: 0 : Product ASP.NET MVC 4 Installer (VS 2010)- Default Locale done install completed
DownloadManager Information: 0 : Increasing current install to 2
DownloadManager Warning: 0 : Dependency failed for product 'ASP.NET MVC 4 Language Packs Installer'. Skipping install
DownloadManager Warning: 0 : Dependency failed for product 'ASP.NET MVC 4 with Language Packs (August 2012)'. Skipping install
DownloadManager Information: 0 : Product ASP.NET MVC 4 Language Packs Installer had a dependency fail. Increasing install product to 3
DownloadManager Information: 0 : Product ASP.NET MVC 4 with Language Packs (August 2012) had a dependency fail. Increasing install product to 4

这是在Windows 7 64位上。如果我尝试使用离线安装程序,我会Setup Failed One or more issues caused the setup to fail. Please fix the issues and then retry setup. For more information see the log file.。但是,log file链接在点击时不会显示在任何位置。

3 个答案:

答案 0 :(得分:16)

尝试@Jacques Eloff's solution后,我检查了日志文件并找到了以下条目:

[2024:21C8][2013-11-22T08:47:22]: Applying execute package: VS10SP1_KB2591016_x86.exe, action: Install, path: C:\ProgramData\Package Cache\5BA5217D49F8BECD7CA452F2F366CD7C99FF1F16\VS10SP1-KB2591016-x86.exe, arguments: '"C:\ProgramData\Package Cache\5BA5217D49F8BECD7CA452F2F366CD7C99FF1F16\VS10SP1-KB2591016-x86.exe" /q /norestart'
[2024:21C8][2013-11-22T08:47:40]: Error 0x80070643: Process returned error: 0x643

然后我手动下载了修补程序KB2591016并尝试安装。这次它促使我提供VS Ultimate安装光盘。下载并挂载从this post链接的图像后,KB2591016的安装成功,然后我可以继续成功安装MVC 4.

答案 1 :(得分:5)

我建议如下:

  1. 确保安装了Visual Studio 2010 SP1。 VS 2010的MVC 4依赖于此,因为它为SP1安装了多个补丁,one允许NuGet MSI在Visual Studio中安装NuGet扩展。即使你可能直接通过VS Gallery更新了NuGet,EXE仍然会尝试运行NuGet MSI。

  2. 打开“控制面板”,然后转到“已安装的程序”。搜索 NuGet Microsoft NuGet for Visual Studio 2010 的条目并将其卸载。这实际上不会从Visual Studio中删除NuGet,它只是包含将要删除的NuGet的MSI - 扩展将保持安装。

  3. http://www.microsoft.com/en-us/download/details.aspx?id=30683下载独立的MVC 4安装程序并运行它。安装程序将在%temp%文件夹中创建许多日志文件。将有一个EXE的日志文件,以及它安装的每个MSI,包括我在#1中提到的修补程序EXE。所有日志文件都应以 dd_AspNetMvc4 _

  4. 为前缀
  5. 另一个失败点可能是安装程序携带的Web Pages 2运行时MSI。 MSI将尝试修改您的根web.config文件。应该很容易确定这是否是失败点:

    • EXE日志将显示网页2 MSI失败,可能返回代码为1603
    • MSI日志将显示更详细的错误。

答案 2 :(得分:0)

SilverlightFox和Jacques Eloff的答案组合起来对我有用。我遵循的步骤是:

  1. 首先检查Windows更新并安装它们(如果存在)。我有一些。
  2. 确保安装了Visual Studio 2010的SP1
  3. Unistall ASP.NET网页2
  4. Unistall NuGet或Microsoft NuGet for Visual Studio 2010
  5. 下载并安装从this post
  6. 链接的.ISO图像Visual Studio 2010 Ultimate
  7. 手动下载修补程序KB2591016。它提示输入VS Ultimate安装光盘(这就是我做第5步的原因)
  8. 下载Web平台安装程序5(上一版)
  9. 重新启动计算机。
  10. 从WebPI开始安装框架 ASP.NET MVC 4 with Language Packs(2012年8月)
  11. 希望这能帮助其他人同样烦人的问题。在此过程中,我还取消了我的卡巴斯基反病毒软件并启用了Windows防火墙。