自己用MVC結構做的內部網站,讀取共享盤(Z:\)的圖紙,進行修改后列印,在本機上運行沒問題。可是發布到服務器上總是說找不到這個檔案,
File doesn't exist
Parameter name: filename
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: File doesn't exist
Parameter name: filename
uj5u.com熱心網友回復:
你是怎么獲取這個檔案的代碼貼出來看看,還有那個路徑的權限問題檢查下。uj5u.com熱心網友回復:
服務器有Z嗎....uj5u.com熱心網友回復:
服務器上是否能夠訪問到你這個共享盤Z?uj5u.com熱心網友回復:
為什么不在本地發布后放到服務器呢uj5u.com熱心網友回復:
用vs部署向導,發布到檔案系統,再上傳看看uj5u.com熱心網友回復:
服務器上也有Z盤,而且也是映射的同一個盤.TO 快樂起航,我一直用的都是本地直接發布到服務器的檔案盤
uj5u.com熱心網友回復:
但是別的功能都沒有問題,就是這個,檔案的讀取出現問題轉載請註明出處,本文鏈接:https://www.uj5u.com/net/11484.html
標籤:C#
