Copy files over the network

  • Thread starter Thread starter Mark Goldin
  • Start date Start date
M

Mark Goldin

In general, can server side code copy files that it will create over the
network?

Thanks
 
Yes server side code can create, edit and copy files just like a windows
app can. However you have to remember that the ASP.NET page is (by
default) running as the ASP.NET user account. This user does not
normally have access to network locations or even many local locations.
So you have a few options,
1 - give ASP.NET user access to set files and folders and network
locations. This is not a good idea for security reasons.

2 - use impersonation
 
Back
Top