A
Anand
Hi,
I want to move my files from web servers to a shared
folder on the database server. For this I impersonate the
aspnet user to common domainuser and gave write
permissions for that user on the folder on the database
server.
During run time it impersonates to the domainuser but it
throws an error
"System.UnauthorizedAccessException: Access to the
path "\\DBServer\Files\Test3.xls" is denied"
The code i wrote is
File.Move("C:\\Inetpub\\wwwroot\\CoradPhase2
\\Files\\Test3.xls","\\\\DBServer\\Files\\Test3.xls");
It works fine if write the identity tag on the web config.
Any help is good and Thanks
Thanks
Anand
I want to move my files from web servers to a shared
folder on the database server. For this I impersonate the
aspnet user to common domainuser and gave write
permissions for that user on the folder on the database
server.
During run time it impersonates to the domainuser but it
throws an error
"System.UnauthorizedAccessException: Access to the
path "\\DBServer\Files\Test3.xls" is denied"
The code i wrote is
File.Move("C:\\Inetpub\\wwwroot\\CoradPhase2
\\Files\\Test3.xls","\\\\DBServer\\Files\\Test3.xls");
It works fine if write the identity tag on the web config.
Any help is good and Thanks
Thanks
Anand