由于一个或多个程序包故障,Visual Studio 2017无法安装列出的工作负载和组件

时间:2017-06-08 17:28:19

标签: visual-studio

我正在尝试在Windows 10中安装Visual Studio Professional 2017.每当我尝试安装ASP.NET和Web开发包时,我都会收到包含日志的错误。我已尝试过此解决方案中列出的步骤:Visual Studio 2017 failed to install several components。我还按照日志文件中的链接并按照此处的说明进行操作:https://developercommunity.visualstudio.com/content/problem/24352/vs2017-installer-fails-trying-to-update-package-mi.html但是我收到了同样的错误。 Visual Studio仍然打开并且工作正常(据我所知),但是我错过了很多我需要的组件。

非常感谢提前!

错误日志:

    The product failed to install the listed workloads and components due to one or more package failures.

Incomplete workloads
    ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26412.1)

Incomplete components
    ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26323.1)
    Windows Communication Foundation (Microsoft.VisualStudio.Component.Wcf.Tooling,version=15.0.26208.0)

You can search for solutions using the information below, modify your selections for the above workloads and components and retry the installation, or remove the product from your machine.

Following is a collection of individual package failures that led to the incomplete workloads and components above. To search for existing reports of these specific problems, please copy and paste the URL from each package failure into a web browser. If the issue has already been reported, you can find solutions or workarounds there. If the issue has not been reported, you can create a new issue where other people will be able to find solutions or workarounds.

Package 'Microsoft.VisualStudio.AspNet45.Feature,version=15.0.26208.0' failed to install.
    Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.AspNet45.Feature;PackageAction=Install;ReturnCode=-2146498548
    Impacted workloads
        ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26412.1)
    Impacted components
        ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26323.1)
        Windows Communication Foundation (Microsoft.VisualStudio.Component.Wcf.Tooling,version=15.0.26208.0)
    Log
        C:\Users\Oliver\AppData\Local\Temp\dd_setup_20170608105455_234_Microsoft.VisualStudio.AspNet45.Feature.log
    Details
        Command executed: "C:\WINDOWS\system32\dism.exe" /online /quiet /norestart /Enable-Feature /FeatureName:"netfx4extended-aspnet45" /All /logPath:"C:\Users\Oliver\AppData\Local\Temp\dd_setup_20170608105455_234_Microsoft.VisualStudio.AspNet45.Feature.log"
        Return code: -2146498548
        Return code details: The Windows feature is unknown.

1 个答案:

答案 0 :(得分:0)

您可以尝试下载完整的离线安装程序 - 大约有30Gb

vs_Community.exe --layout HERE_PATH_TO_SAVE --lang en-US