简体   繁体   English

在 Z5DA5ACF461B4EFB7E216EC8610Z ExpressB2 中无法运行 ASP.NET 内核 Web API 项目

[英]Unable to run the ASP.NET Core Web API project in IIS Express

I have created a new ASP.NET Core Web API project using Visual Studio 2019 and without making any changes, run the project under IIS Express. I have created a new ASP.NET Core Web API project using Visual Studio 2019 and without making any changes, run the project under IIS Express. Just nothing happened and when I stop the solution it gives me the below error.什么也没发生,当我停止解决方案时,它给了我以下错误。 whereas it runs fine when I choose to run under the same solution name.而当我选择以相同的解决方案名称运行时,它运行良好。 (running fine in ASP.NET core runtime) (在 ASP.NET 核心运行时运行良好)

Error: iisexpress.exe' has exited with code -1错误:iisexpress.exe' 已退出,代码为 -1

It will be a great help if someone can explain.如果有人可以解释,这将是一个很大的帮助。 Thanks in advance提前致谢

Install IIS with all the below features checked as it is required for VS studio 2019 and.Net framework 4.6 and above.安装 IIS 并检查以下所有功能,因为它是 VS studio 2019 和 .Net 框架 4.6 及更高版本所必需的。 IIS hostable web core has allowed running the core application on IIS IIS 可托管 web 内核允许在 IIS 上运行内核应用程序

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM