简体   繁体   English

IIS Express 未在 Visual Studio 2019 中运行

[英]IIS Express not running in Visual Studio 2019

I am new to dot.net development and start developing a web app.我是 dot.net 开发的新手,开始开发 web 应用程序。

I am developing a chat application under ASP.NET core MVC architecture.我正在 ASP.NET 核心 MVC 架构下开发一个聊天应用程序。

Initially, the project works well and could run on IIS Express.最初,该项目运行良好,可以在 IIS Express 上运行。 but later I found that now the IDE is not working: the project cannot run on IIS Express.但后来我发现现在 IDE 不起作用:该项目无法在 IIS Express 上运行。

I am getting the following error as an alert message as well as in the output console.我收到以下错误作为警报消息以及 output 控制台。

Error: The program '[18268] iisexpress.exe' has exited with code 0 (0x0).错误: The program '[18268] iisexpress.exe' has exited with code 0 (0x0).

Screenshot of the alert message in the IDE: Click here to view IDE中的告警信息截图点此查看

But after a while, I restarted the project and when I run the project again, I got the following error:但是过了一会儿,我重新启动了项目,当我再次运行项目时,出现以下错误:

Error: The program '[17512] iisexpress.exe' has exited with code 0 (0x0).错误: The program '[17512] iisexpress.exe' has exited with code 0 (0x0).

I am confused what is wrong with my project or IDE.我很困惑我的项目或 IDE 出了什么问题。 Can somebody please help me to resolve this?有人可以帮我解决这个问题吗?

Thanks in advance.提前致谢。

I already refer some posts and articles in stackoverflow and internet but could not see the problem I found some posts I have already followed:我已经在 stackoverflow 和 internet 中引用了一些帖子和文章,但看不到问题我发现了一些我已经关注的帖子:

https://stackoverflow.com/questions/62745345/error-running-iis-express-in-visual-studio\ IIS express crashes after successfully debugged and build https://stackoverflow.com/questions/62745345/error-running-iis-express-in-visual-studio\ IIS express 在成功调试和构建后崩溃

But they are very old posts and I could not find an answer.但它们是非常古老的帖子,我找不到答案。

  1. Check your solution folder for a hidden ".vs" folder.检查您的解决方案文件夹中是否有隐藏的“.vs”文件夹。

  2. In Visual Studio, right click on the web project, chose properties and then navigated to the "web" tab.在 Visual Studio 中,右键单击 web 项目,选择属性,然后导航到“web”选项卡。 From there I changed the Project URL to another port number.从那里我将项目 URL 更改为另一个端口号。 For example, if it was http://localhost... - Changed it to http://localhost:43567.例如,如果它是 http://localhost... - 将其更改为 http://localhost:43567。

在此处输入图像描述

  1. If your machine is 64bit, please go to Tools-> options -> projects and solutions:如果你的机器是64位的,请go到工具->选项->项目和解决方案:

在此处输入图像描述

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

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