I have a problem with my MVC application and startup.
Every time I make a change and one the app its take a long time to start up.
I have about 100 lines with ''iisexpress.exe' (CLR v4.0.30319:'
Do I have to start iisexpress every time I run my application?
After disabling logging, I found significant improvement
Just delete following in Program Files \IISexpress\iisexpress.config
OR .vs\config\applicationhost.config
<add name="HttpLoggingModule" image="%IIS_BIN%\loghttp.dll" />
<add name="HttpLoggingModule" lockItem="true" />
I had the same problem with IIS Express 10, Visual Studio 2015 Update 3 on Windows 10. I did a few tests and with different settings and browsers (Chrome 54, Edge 38, Opera 41). The browser doesn't really matter, but I found three things which significantly changed my original 15 seconds load time:
- Switched Windows Defender 4.10 off (changed from 15 to 12 seconds)
- Turned Edit and Continue feature off (changed from 12 to 6 seconds)
- Switched Windows Defender 4.10 back (changed from 6 to 8 seconds)
- Tried to run the application without debugging (changed from 8 to 2 seconds)
So if you are willing to give up Edit and Continue, or even debugging then you can speed up the process.
Edit and Continue can be turned off in Visual Studio/Tools/Options/Debugging/General/Enable Edit and Continue.
You can start your project without debugging with Ctrl+F5.
I would not recommend to turn off your Windows Defender, but you can play around with its exclude directory function, you might win a few seconds there as well.
I had this same problem, tested with VS2010 and VS2015. Symptom: VS was quick, compiled, loaded symbols and opened browser within a second but then browser just hung for 5 to 20 minutes. My projects are huge but my laptop is 16GB RAM, i7 and SSD so definitely not a size problem. I tried all the answers on this question and also here Visual Studio debugging/loading very slow.
In the end I found the solution here https://social.msdn.microsoft.com/Forums/en-US/394f3100-bac2-4b1c-8f8c-731226b905d4/painfully-slow-starting-a-web-application-in-visual-studio?forum=visualstudiogeneral
Exclude the directory "C:\Windows\Microsoft.NET\Framework" from antivirus scanning
Hopefully this will save someone else so much wasted time :)
IIS Express should continue to run in the background while you change and compile your code. You can then go to Debug -> Attach Process and find the iisexpress.exe process and attach to it. The problem with hitting F5 every time is that VS tears down the process and restarts it which takes time.
I had similar problem. When I run the process monitor I found that my fusion log is enabled after disabling fusion log IIS Express loaded the sites without much delay.
I was experiencing slow startup of my ASP.NET MVC application using Visual Studio 2017 and IIS Express. I tried almost every suggestion in this thread without any noticeable application startup speed. The one thing that worked was launching the application without debugging using Ctrl+F5. This improved the launch time from 10-20 seconds to just a few seconds. If the browser window is kept open, coding edits can be tested by refreshing the browser. Editing models or controllers require the project to be (re)built whereas changes to views are reflected without a project (re)build.