Web deploy , WEB 發行部署環境設定
每次都久久用一次實在記不得,這次特此記錄步驟 ,以下均以在 win server 2019 安裝為準
參考天空的垃圾場
http://blog.sanc.idv.tw/2014/08/aspnet-web-deploymvciis.html
1.安裝 Web Server (IIS) (IIS 相關元件都先照原先預設勾選,server 2019)


2.接著選下面的 managerment tools 安裝

3.要安裝 ASP.NET 4.5相關元件,依開發版本(win server 2019 內己安裝4.7)

4.接下來要安裝 Web Deploy

5.接著會跳出以下網頁叫你安裝 Web Platform ,會下載一個 msi 檔,安裝他


6.裝完後再回頭按一次取得新的網頁平台元件,就不會開網頁叫你下載了,而是直接進入Web Platform的介面 ,準備來安裝Web Deploy (我用時裝很久...因為會自動去裝 .net 3.5,可能有什麼元件有依賴吧)


7.然後新增一個帳號預定用來發行部署使用,並選擇要部署的站台,(此帳號必須為系統管理員,不能設為標準,暫時無解決方案)

8.授予帳號 IIS 管理權限,在 VS 右鍵發行時也是要用這個帳號

9.接下來要打開遠端部署的功能


10.將 max 此帳號設定權限,使其能存取 web 的資料夾,才可以發佈檔案上去,這裡明顯和天空的垃圾場不一樣,可能是 win server 版本差異


11.確認服務有無啟動

12.VS 設定(8172 port要記得開)
