IIS Express crashes when starting a site from visual studio

29

I started encountering this problem after installing the Visual Studio 2015 RC; I am no longer able to debug web projects from Visual Studio 2013.

My projects build fine and VS launches a browser - I can see in my output that iisexpress.exe loads all the relevant DLLs for the project, but then right when I would expect to see my website, iisexpress.exe stops running and Visual Studio stops debugging. All the output Window tells me is this:

The program '[3724] iisexpress.exe: Program Trace' has exited with code 0 (0x0).
The program '[3724] iisexpress.exe' has exited with code -532462766 (0xe0434352).

Looking in the event viewer I see the following crash info for iisexpress.exe:

Faulting application name: iisexpress.exe, version: 8.0.8418.0, time stamp: 0x4fbaa9e8
Faulting module name: KERNELBASE.dll, version: 6.1.7601.23040, time stamp: 0x553e86a2
Exception code: 0xe0434352
Fault offset: 0x0000c44d
Faulting process id: 0x1b40
Faulting application start time: 0x01d094d5c74c69d5
Faulting application path: C:\Program Files (x86)\IIS Express\iisexpress.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll

I've tried reinstalling IIS, deleting my local IISExpress folder, and still no luck. Anybody have an idea how I can get IIS running again?

iis-express
visual-studio-2015
asked on Stack Overflow May 22, 2015 by Joshua Barron

13 Answers

78

In your project folder find the hidden .vs folder and delete it. This solved the problem for me.

answered on Stack Overflow Feb 28, 2017 by kernowcode
8

On my code this error was caused by an infinite loop, try to check if you have a loop like that in the following example:

public int InfinitiveLoop(long param)
{
    return InfinitiveLoop(param);
}
answered on Stack Overflow Nov 12, 2019 by iugs88 • edited Dec 19, 2019 by Anatolii
6

Considering faulting module is not on IISExpress's dll files, this might be caused by either your web project or an unknown VS issue.

One thing we can try is to start the problematic web site without using VS. You can execute IISExpress.exe with /siteid option. You can find the site id from applicationhost.config which is placed on the config of IISExpress directory.

For example, if the site id is 2, you can run this command:

"\Program Files\IIS Express\iisexpress.exe" /siteid:2

If the web site still does not work, showing the Access Violation issue which you ran into when you launched the website via Visaul Studio, maybe you will need to narrow down the issue why that happens.

If the web site runs okay if you don't use Visual Studio, it might be caused by some Visual Studio issue. In that case, considering you used RC build of Visual Studio, you will need to upgrade VS 2015 first and check if the issue is still reproducible.

answered on Stack Overflow Sep 4, 2015 by Jeong Hwan Kim
2

Try deleting .vs folder from your project folder. Found the solution here

answered on Stack Overflow Jun 16, 2018 by Gusty_Ninja
2

On top of all answers here, I believe this answer can be helpful to figure it out why this issue occurred: System.StackOverflowException. I started my application without debugging and the two errors were IIS crashed and vstest.executionengine.x86.exe has stopped working (when trying to run the unit tests). Unfortunatelly, in the window event viewer I wasn't able to see the actual error. I saw it just when I started my application with debugger. So, if you have one of these errors, before doing some other investigations, please check your code. Because I was dumb, it took me 1 hour of my work time :(

1

I just had to delete .suo file of the project and rerun. That solved the problem.

answered on Stack Overflow Jan 25, 2018 by nPcomp
0

None of the above answers worked for me but I finally found what my issue was. Hopefully this will help someone down the line.

First run IIS Express from command prompt to validate that the site can or cannot be run.

Im my case, i got an error saying that C:\Windows\Microsoft.NET\Framework64\v4.0.30319\CONFIG\web.config had malformed xml on line 14. Looking at that line in the file it just said null null null null null etc.

The fix for me was to replace the web.config file with one from my coworkers'. IMPORTANT: you must get the file from someone running the same version, ie if you are VS2015 get a copy from someone running VS2015. If you get it from someone running a different version you will see an error saying it could not load an assembly from the manifest.

Hopefully this helps someone that has tried all the suggestions above. I think the cause of this for me was updating from trial mode and adding a product key within VS2017

answered on Stack Overflow Dec 14, 2017 by JoeyD • edited Dec 14, 2017 by Tom Aranda
0

Clean and build project and it will work

answered on Stack Overflow Jan 31, 2018 by shahida
0

I had a similar issue and this worked for me:

(i). Deleted IISExpress folder in Documents. (ii). Deleted almost everything in temp folder %temp% (may not be necessary but ...) (iii).Went into Control Panel\Programs\Turn windows features off and on and enabled IIS. (iv)Launched VS2013 project and opened and ran much faster with no apparent issue.

0

My symptoms:

  • iisexpress.exe' has exited with code -2146233082 (0x80131506)
  • Starting in VS crashes IISExpress on startup in System.Web without any logging and tracing
  • Starting is possible (As Jeong Hwan Kim mentioned) from command line, but OData und WebAPI do not work

Solution:

I found out, that the application starts from VS when I remove the WebAPI and OData Route (inclusive EnsureInitialized). So I updated all WebAPI libraries to version 5.2.4 and System.Threading to 4.3.0 and all problems vanished.

answered on Stack Overflow Feb 22, 2018 by Fried
0

Open new visual studio project and copy and paste the same project it worked .Sometimes it might be due to visual studio issue. Thanks

answered on Stack Overflow Nov 13, 2018 by satishg14
0

I just battled with this and my issue was having a different version of Autofac.dll in my web folder than in sub projects. So if you have tried all of these options and nothing works, check your DLL versions...

answered on Stack Overflow Apr 11, 2019 by tsiorn
0

Keep in mind as I didn't realize, the .vs file is a hidden file on Windows 7. Not sure about other OS.

answered on Stack Overflow Jun 29, 2020 by Terry H

User contributions licensed under CC BY-SA 3.0