S
Shailesh Gajare
Hi All,
I have creating an ASP.Net application with two web servers. I am
uploading a file which is being uploaded on one of the server, I want to
copy the uploaded file on the other server at the same time.
It says Access Denied.
I am using File.Copy ( Source , Destination , true ) command in my code,
where
Source : the current physical location of the uploaded file
Destination : the physical location of the other server i.e.
\\IPAddress\SharedFolder
True : To overwrite the file if it exists
I have given rights for everyone on SharedFolder, but still it says Access
denied.
Is it that I have to provide login and pwd in my code.
Is it that I have to NetworkCredential class in my code? if Yes how do I
do.
What is that I am missing?
How do i give rights of ASPNet user of one machine to shared folder of other
machine.
Thanks for your help,
Shailesh Gajare
I have creating an ASP.Net application with two web servers. I am
uploading a file which is being uploaded on one of the server, I want to
copy the uploaded file on the other server at the same time.
It says Access Denied.
I am using File.Copy ( Source , Destination , true ) command in my code,
where
Source : the current physical location of the uploaded file
Destination : the physical location of the other server i.e.
\\IPAddress\SharedFolder
True : To overwrite the file if it exists
I have given rights for everyone on SharedFolder, but still it says Access
denied.
Is it that I have to provide login and pwd in my code.
Is it that I have to NetworkCredential class in my code? if Yes how do I
do.
What is that I am missing?
How do i give rights of ASPNet user of one machine to shared folder of other
machine.
Thanks for your help,
Shailesh Gajare