How to Copy a File within an ASP.NET-Page

  • Thread starter Thread starter =?ISO-8859-1?Q?Philipp_H=E4nggi?=
  • Start date Start date
?

=?ISO-8859-1?Q?Philipp_H=E4nggi?=

Hi

How can I copy a File within an ASP.NET-Page. The location of the file
is a
Network-Drive.
I tried File.copy but it doesn't work. The error is "Could not find
file ...".
Is there a function where I can use another user (a network-user) and
not the local user "aspnet"?

Thanks for answering.

Philipp
 
You could use impersonation, using an account which has access to the
network share. To do this, you need to put the line <identity
impersonate="true" userName="username" password="password /> in web.config.

Mun
 
I have the same problem and nothing discribed here helpe

I am using a Windows 2000 Server and all examples say, not tested or applicable for windows 2000

so doe anybody knoe how to get it work for windows 2000

any help is really appreciated!

thaks reinhar
 
Back
Top