Невозможно создать папку и файл на файловом сервере с помощью ASP.NET применение
I am trying to create new directory and placed some files in that folder. creating folder and saving the file in "File Server" (seperate file server). Ex : \\Server101\Country\Projects. "We are maintaining Application in one server (i.e. Application Server) and Folder creation in another server (i.e. File Server)" When we trying to create a folder in the above path, it's showing "Access denied" error. Error : Access to the path '\\Server101\Country\Projects' is denied. The file server path has already given read/write access for those who are all creating folder through ASP.net application. The same code works in local system. It means the code will create folder and text file in file server. But, while running from the server through IIS, it isays "Access path denied Error" Almost i have given all the settings in IIS Application folder and File Server folder. Still getting problem...How to identify the error.... below is my simple code.
Что я уже пробовал:
Dim fp As String = "\\Server101\Country\Projects" 'File Server path (another server) If (Not System.IO.Directory.Exists(fp)) Then System.IO.Directory.CreateDirectory(fp) End If File.Create(fpath & "\test.txt").Dispose()