最后关头,出现了百思不得解决的问题:A 程序发布的服务器。
B 文件服务器1
C 文件服务器2
要在制定的B和c的共享文件夹下创建文件夹。在B上创建成功。C上创建失败。并且提示错误为:Could not find a part of the path "\\nt-sh\project-sh". (nt-sh,为文件服务器1)我是用Directory.CreateDirectory(创建的)我真不明白为什么。在线。
B 文件服务器1
C 文件服务器2
要在制定的B和c的共享文件夹下创建文件夹。在B上创建成功。C上创建失败。并且提示错误为:Could not find a part of the path "\\nt-sh\project-sh". (nt-sh,为文件服务器1)我是用Directory.CreateDirectory(创建的)我真不明白为什么。在线。
<add key="Adress" value="\\nt-sh\project-sh\"></add>aspx内的
Dim dir As String
dir = System.Configuration.ConfigurationSettings.AppSettings("Adress").ToString.Trim
dir = dir + ddlCategory.SelectedItem.Text + "\" + txtJobNumber.Text.Trim Call CreateFolder(dir)CreateFolder
If Directory.Exists(strFolder) = False Then Directory.CreateDirectory(strFolder)
End If