[問題] 請問讓user 下載執行檔的問題

看板C_Sharp作者 (另一個我)時間17年前 (2008/09/03 02:40), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
我是參考微軟msdn的寫法 string remoteUri = "我的server位址"; string fileName = "我想要給人下載的檔案", myStringWebResource = null; WebClient myWebClient = new WebClient(); myStringWebResource = remoteUri + fileName; myWebClient.DownloadFile(myStringWebResource, fileName); 如果是文件檔或是圖片檔的話,下載是沒問題的 但是如果是exe檔的話,會出現 遠端伺服器傳回一個錯誤: (404) 找不到。 請問問題在哪? 麻煩各位大大給我指點一下....感恩 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.113.51.82
文章代碼(AID): #18lOYZs5 (C_Sharp)