I am trying to create a directory in a shared drive of my machine, but and I get error when I create the directory.
Error: Access to the path '\\MySharedDry\e$\WebFiles\Customer\100' is denied.
I gave permission to IIS_WPG and nd Network service; still giving error.
public void CreateDirectory()
{
DirectoryInfo dir = new DirectoryInfo(Path);
if (dir.Exists == false)
{
dir.Create(); //Error here.<<<<
}
}
File mon( Process minitor) error log is below
Process: w3wp.exe
Operation: CreateFile
Result : ACCESS DENIED
Path: '\\MySharedDry\e$\WebFiles\Customer\100\'
Detail:Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, Allocatio ...
Go to the complete details ...