【发布时间】:2012-12-07 15:31:20
【问题描述】:
这是我的服务器目录(权限很好):
string ServerPath = ("\\\\servername\\Public\\Intranet2007Docs");
我在这里访问它:
DirectoryInfo directory = new DirectoryInfo(Server.MapPath(ServerPath));
这是错误:
任何帮助都会很棒。我不明白为什么它不会映射到 UNC 的路径。
【问题讨论】:
-
@、~、// 和 .都是本地机器上的目录,它们不能访问服务器。
标签: c# unc server.mappath mappath