3

I am new to dot.net development and start developing a web app.

I am developing a chat application under ASP.NET core MVC architecture.

Initially, the project works well and could run on IIS Express. but later I found that now the IDE is not working: the project cannot run on IIS Express.

I am getting the following error as an alert message as well as in the output console.

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

Screenshot of the alert message in the IDE: Click here to view

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).

I am confused what is wrong with my project or 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:

https://stackoverflow.com/questions/62745345/error-running-iis-express-in-visual-studio\ IIS express crashes after successfully debugged and build

But they are very old posts and I could not find an answer.

Karney.
  • 4,099
  • 2
  • 5
  • 10
GeorgeSr
  • 33
  • 1
  • 5
  • 1
    If you delete the hidden .vs folder from Solution, can it show normally? – Karney. Mar 24 '21 at 09:14
  • @Karney. Thank you for the support. but could not see such a folder. I noticed in some posts what you said is mentioned as an accepted answer. but I could not find any hidden folder when viewing from visual studio or file explorer. – GeorgeSr Mar 24 '21 at 09:20
  • Please refer to this link open the visible folder. https://support.microsoft.com/en-us/windows/view-hidden-files-and-folders-in-windows-10-97fbc472-c603-9d90-91d0-1166d1d9f4b5 – Karney. Mar 24 '21 at 09:22
  • Does this answer your question? [Unable to launch the IIS Express Web server](https://stackoverflow.com/questions/15873126/unable-to-launch-the-iis-express-web-server) – Michael Freidgeim Jul 13 '21 at 22:07

1 Answers1

8
  1. Check your solution folder for a hidden ".vs" folder.

  2. In Visual Studio, right click on the web project, chose properties and then navigated to the "web" tab. From there I changed the Project URL to another port number. For example, if it was http://localhost... - Changed it to http://localhost:43567.

enter image description here

  1. If your machine is 64bit, please go to Tools-> options -> projects and solutions:

enter image description here

Karney.
  • 4,099
  • 2
  • 5
  • 10