You can't copy files using ASP.NET. You can copy a file from the server to another machine on the servers network, by using File.Copy and passing a network path, I believe.
If you are using the default settings then the user that your asp.net code is running under does not have the rights to access shares on the network. You'll need to make your asp.net run using a user that has the appropriate permissions.
Then go into the debugger, it's obvious that the path you're passing in is not valid. Are you putting a @ at the start of the string, so that everything is literal
copying the file from one machine to another
liujj_xujj
moondaddy
Parag Khare
http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconaspnetimpersonation.asp
kamila
Please Help
Thanks in Advance
Kang
lhuff
string
path=@"\\ABC\test\WS_FTP.LOG"; try{
if(File.Exists(path)){
Response.Write("exist");
}
else{
Response.Write("Doesn't exist");
}
}
catch(Exception oException){
Response.Write(oException.Message);
}
But still it is saying that the path doesn't exist kndly help