Share via

ASP.NET 附檔上傳到NAS問題

政維 湯 21 Reputation points
2020-08-17T05:33:13.3+00:00

請問Asp.net 要如何用 UNC 路徑存取 NAS 的檔案

目前 NAS 開了一個帳號 ( user_a ) , Windows server 可以用 SMB 的連線上方, 將 user_a 的帳號密碼存入認證管理員,
所以 Windows Server 可以存取 NAS 的共享資料夾..

但是目前安全性因素, NAS 沒有加入網域, 也不能開跟網域內相同的帳號密碼, 更不能開啟 Everyone 存取.
Windows Server 也無法建立 user_a 的帳號及密碼.

請問我要如何在 asp.net 中, 能存取這個路徑之中的帳號呢?
使用 System.IO.Directory.CreateDirectory 或使用HttpFileCollection 都會發生錯誤

Community Center | Not monitored
0 comments No comments

Answer accepted by question author

Leon Laude 86,201 Reputation points
2020-08-17T06:25:41.75+00:00

Hi,

Please note that Microsoft Q&A forums are currently available in English only.

ASP.NET is currently not supported in the Q&A forums, the supported products are listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).

You can ask the experts in the dedicated ASP.NET forum over here:
https://forums.asp.net

----------

(If the reply was helpful please don't forget to accept as answer, thank you)

Best regards,
Leon

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.