【问题标题】:the asp.net core module is required to host asp.net core projects in iis express and does not appear to be installed. try repairing visual studio 2019asp.net core 模块是在 iis express 中托管 asp.net core 项目所必需的,并且似乎没有安装。尝试修复 Visual Studio 2019
【发布时间】:2021-08-12 01:01:16
【问题描述】:

当我尝试安装 Visual Studio 2019 时......首先它安装正确,但当我尝试运行时,它显示错误:“需要 asp.net 核心模块来托管 asp.net 核心项目iis express 似乎没有安装。尝试修复visual studio”。 我也安装了托管包,并做了很多在谷歌上可用的技巧,但它没有调试,也没有在 chrome 上运行。在这张图片上显示错误 enter image description here

【问题讨论】:

    标签: asp.net visual-studio asp.net-core


    【解决方案1】:

    您使用的是哪个版本的 Asp.net Core 版本?目前最新版本的 Visual Studio 将安装 .NET Core 5 SDK 和运行时。当您安装 Visual Studio 2019 时,请确保您已选择相关的 Asp.net 核心组件,请查看此屏幕截图:

    然后,关于ASP.NET Core Module,它与来自 .NET Core Hosting Bundle 的 .NET Core Runtime 一起安装。

    所以,你可以通过this link下载.NET Core Hosting Bundle(根据.NET Core版本选择相关的Hosting Bundle),然后安装:

    【讨论】:

    • 我正在使用 Visual Studio 2019 ....是的,我已经完成了您所说的所有步骤,但是当我单击 On IIS Exprees 时它总是会写入。需要托管 asp.net 核心模块iis express 中的 asp.net core 项目似乎没有安装。尝试修复视觉工作室
    • "我正在使用visual studio 2019....",从.NET Core 下载页面或者Asp.net core document,我们可以看到.Net Core 5 版本需要VS 2019 16.8 或更高版本版本。所以,尝试安装最新版本的VS 2019。经过上面的方法测试,如果还是不行,尝试新建一个web应用检查一下。如果问题仍然存在,请尝试安装 VS 2019。
    猜你喜欢
    • 1970-01-01
    • 2020-02-22
    • 2019-11-23
    • 2017-04-02
    • 2017-07-19
    • 2020-05-11
    • 2020-07-06
    • 2021-06-23
    • 1970-01-01
    相关资源
    最近更新 更多