Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The program iisexpress.exe' has exited with code 0

When I try to start my newly created WebApplication I get this error:

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

I have already searched through internet and none of this solutions helped me:

  • Change the port number (and virtual directory)
  • Start as administrator
  • Deleting the .vs folder
  • Deleting the IISExpress-folder under Documents
  • Use 64-bit of version of IISexpress
  • Restart the computer
  • Press CTRL-F5

I just want to build the page. I have done no changes to the original MVC5 website.

EDIT: I thought it was an error, but in the comment @Lex li says it is not an error. When I search through this on internet it look like many people had experienced it before.

I just created a new MVC application. Without doing any changes I try to run it with IIS Express (Google Chrome), but it just stops, without anything more. Chrome gives me this error: This site can’t be reached localhost refused to connect.. And I get no errors what so ever. It just wont start, and Visual Studio Diagnostic Tools stop running at the same time Chrome closes itself.

EDIT 2: I have been able to dig a bit more:

C:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error
Starting IIS Express ...
Initializing the W3 Server Started CTC = 2601562
Error initializing IISUTIL's LocalRequest.  hr = 80072afa
Terminating W3_SERVER object
Start listenerChannel http:0
Initializing the W3 Server Started CTC = 2610156
Error initializing IISUTIL's LocalRequest.  hr = 80072afa
Terminating W3_SERVER object
InitComplete event signalled
Process Model Shutdown called
Unable to start iisexpress.

I have realised that IISExpress i struggeling with something. I was able to get this error, when I presset CTRL - F5: unable to launch iis express web server.

Scan the folder C:\Users\xuser\source\repos\CMySQL\CMySQL for project files.
1 project(s) are detected.
* CMySQL.csproj


Project file: C:\Users\xuser\source\repos\CMySQL\CMySQL\CMySQL.csproj.
IIS Express configuration file: C:\Users\xuser\source\repos\CMySQL\.vs\config\applicationHost.config.
Analyze ASP.NET project.
Extract web project settings.
UseIIS: True
AutoAssignPort: True
DevelopmentServerPort: 61708
DevelopmentServerVPath: /
IISUrl: http://localhost:6549/
NTLMAuthentication: False
UseCustomServer: False
CustomServerUrl: 

SaveServerSettingsInUserFile: False
UseIISExpress: true
IISExpressSSLPort: 
IISExpressAnonymousAuthentication: 
IISExpressWindowsAuthentication: 
IISExpressUseClassicPipelineMode: 
UseGlobalApplicationHostFile: 
Scan all bindings.
IIS Express is used for this project.
Binding *:6549 (http).
A matching binding is found for http://localhost:6549/.
like image 681
Devloop80 Avatar asked May 27 '19 18:05

Devloop80


People also ask

Where is Iisexpress EXE located?

This file is located in the %userprofile%\Documents\IISExpress\config folder or %userprofile%\My Documents\IISExpress\config folder, depending on your OS. When you run a site from a configuration file, you can specify which site to run.

What is Iisexpress?

IIS Express is a lightweight, self-contained version of IIS optimized for developers. IIS Express makes it easy to use the most current version of IIS to develop and test websites.

What does it mean when a program exits with code 0?

"Exited with code 0" just means the process terminated successfully with no errors. Please Sign up or sign in to vote. How do I fix this "the program ' [10272] iisexpress.exe' has exited with code 0 (0x0)."?

What does the exit code -1 mean in IIS?

I have already cleared out what few files exist in the dotnet temporary folders (most are empty when VS shuts down), so this isn’t it. Suggestions? The exit code -1 means that the reason is unknown. Please check your IIS Express log to see if there are more information about this issue.

Why does the program [4268] project4 Exe exit with code 0 (0x0)?

The program ' [4268] Project4.exe ' has exited with code 0 (0x0). Exited with code 0 means there was no error. What is your question? Please show the code of your program so we can see what it is doing.


3 Answers

My problem was solved only by deleting the .vs directory.

like image 188
user14451183 Avatar answered Oct 23 '22 21:10

user14451183


For my , only worked remove the ISSExpress folder locate in c:\users"youruser"\Documents\ISSExpress

like image 3
José Caetano Avatar answered Oct 23 '22 22:10

José Caetano


Closing all browser windows worked for me.

But that was after doing this first: File -> Open -> Web Site etc. as described here - I removed the website from IIS Express:

Why and how to fix? IIS Express "The specified port is in use"

not sure if I had to do both of these but it worked for me.

like image 2
user2673837 Avatar answered Oct 23 '22 22:10

user2673837