Può succedere che eseguendo un’applicazione da Visual Studio venga restituito il seguente errore:
Microsoft Visual Studio
—————————
Unable to launch the IIS Express Web server.Failed to register URL “http://localhost:63591/” for site “xxxxxx” application
“/”. Error description: The process cannot access the file because it is being
used by another process. (0x80070020)
Aprire quindi CMD ed eseguire il seguente comando:
netstat -ao | findstr <port_number_to_search_for>
in cui <port_number_to_search_for> è la porta da ricerca, ad esempio la porta 63591
Ad esempio:C:\>netstat -ao | findstr 63591
TCP 12.0.0.1:4026 cs-pc:4026 LISTENING 9544
L’ultimo numero visualizzato (9544) è l’ID del processo che utilizza la porta richiesta da Visual Studio.
Premere Ctr+Alt+Canc, identificare il processo con ID 9544 e chiuderlo.