I maintain several web sites that are Visual Studio "Web Site Projects".
I've found that with a couple of these projects, Visual Studio regularly freezes while I'm working on the code. This doesn't happen for some of the web site projects, and I haven't seen it happen on any Web Application projects.
Microsoft.VisualStudio.Web.Host.exe
is maxing out one of the CPU cores..cs
file under the App_Code
directory.Other actions that sometimes seem to trigger the problem:
I found the following potentially-related problems using Google, but none of them seemed to contain a workaround or solution.
If you experience crashes of Visual Studio, typically when working with a very large solution, your IDE might be out of virtual memory. Typical indicators of the problem include a "one or more errors occurred" message, "the process appears to be deadlocked" message, and OutOfMemory exception in a crash dump.
The workaround is pretty easy, just follow these simple steps: Open Tools / Options in Visual Studio 2019 and find the Projects and Solutions node. Unselect 'Allow parallel project initialization' Click 'OK' and close the solution.
Microsoft Visual Studio is an IDE made by Microsoft and used for different types of software development such as computer programs, websites, web apps, web services, and mobile apps. It contains completion tools, compilers, and other features to facilitate the software development process. Try it now.
I noticed that the problem happened less often when I suspended ReSharper.
The problem still happened occasionally when editing classes under App_Code
, but restarting Visual Studio worked around it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With