Visual Studio 2015 error with ASP.NET web application launching

Posted: (EET/GMT+2)

 

Ran into the following Visual Studio error today:

Microsoft Visual Studio
Unable to launch the IIS Express Web server.
Failed to register URL "http://localhost:2345/" for site
"MyAspNetWebApp" application "/". Error description: The
process cannot access the file because it is being used
by another process. (0x80070020)

OK   

Restarting Visual Studio did not help. It appears to me this has something to do with Windows 10's built-in security (virus scanning) application, which locks some of the libraries needed to run the web application.

Usually, this problem goes away after a couple of restarts.