A
A.V.C.
How to access directory on other machine in the network.
If I use path of the server machine it works fine
I want to access other machine that needs uname and pwd.
I have tried
1) Gave the right to act as part of OS TO ASPNET USER IN LOCAL
SECURITY POLICIES
2) <identity impersonate="true"
userName="user12"
password="pwddd12" />
setting in the web.config
This does not work and says :
Could not create Windows user token from the credentials specified in
the config file. Error from the operating system 'A required privilege
is not held by the client. '
my code:
DownDirPath = "\\domain\folder_name\xyz"
'DownDirPath = "C:\UPLOAD\voice"
DownDirLength = DownDirPath.Length()
DownMyDir = New DirectoryInfo(DownDirPath)
'DownMyFileInfos = DownMyDir.GetFiles("*.*")
DownTotalElements = DownMyFileInfos.Length()
DownAllFilesName = Directory.GetFiles(DownDirPath, "*.*")
If I use path of the server machine it works fine
I want to access other machine that needs uname and pwd.
I have tried
1) Gave the right to act as part of OS TO ASPNET USER IN LOCAL
SECURITY POLICIES
2) <identity impersonate="true"
userName="user12"
password="pwddd12" />
setting in the web.config
This does not work and says :
Could not create Windows user token from the credentials specified in
the config file. Error from the operating system 'A required privilege
is not held by the client. '
my code:
DownDirPath = "\\domain\folder_name\xyz"
'DownDirPath = "C:\UPLOAD\voice"
DownDirLength = DownDirPath.Length()
DownMyDir = New DirectoryInfo(DownDirPath)
'DownMyFileInfos = DownMyDir.GetFiles("*.*")
DownTotalElements = DownMyFileInfos.Length()
DownAllFilesName = Directory.GetFiles(DownDirPath, "*.*")