Good afternoon,
I am trying to map a network driver for accessing files in it.
There is username and password informaiton in Web.config:
<identity impersonate="true" userName="Domain\user" password="password">
Otherwise, in the web page which needs to access remote driver, I wrote codes for mapping the network driver:
private string MapDrive()
{
_netDrive.Force = false;
_netDrive.Persistent = false;
_netDrive.LocalDrive = "X";
_netDrive.PromptForCredentials = false;
_netDrive.ShareName = "\\\\Windows Server Name\\folder1\\subFolder";
_netDrive.SaveCredentials = False;
_netDrive.FindNextFreeDrive = True;
_netDrive.MapDrive();
}
This private MapDrive function will be fired in the Page_Load(). ...
Go to the complete details ...