在iis上設定了一個新的站台後,卻無法啟動,錯誤訊息是"程序無法存取檔案,因為檔案正由另一個程序使用。(發生例外狀況於HRESULT:0x80070020)"
這是因為站台上設定的port已經被別的程序使用了,可以用tcpview去確認被什麼程序給佔用了。
看是要把站台改port,會把其他佔用port的程序關閉即可。
After setting up a new site on IIS, it fails to start with the error message:
"The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)"
This issue occurs because the port assigned to the site is already in use by another process. You can use TCPView to check which process is occupying the port.
To resolve this, you can either change the site's port or terminate the process that is using the port.