RE: File.Copy Method timing issues.
From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 02/07/04
- Next message: Steven Cheng[MSFT]: "RE: urlencode and asp.net"
- Previous message: Jim Hughes: "Re: Put Data in DropDownList"
- In reply to: Brian Hanson: "File.Copy Method timing issues."
- Next in thread: Steven Cheng[MSFT]: "RE: File.Copy Method timing issues."
- Reply: Steven Cheng[MSFT]: "RE: File.Copy Method timing issues."
- Reply: Amit Singla: "RE: File.Copy Method timing issues."
- Reply: Amit Singla: "RE: File.Copy Method timing issues."
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 07 Feb 2004 02:09:05 GMT
Hi,
Thanks for posting in the community!
>From your description, you used the System.IO.File.Copy method to copy a
file from a remote address and then use it in an ASP.NET web application.
However, you found that sometimes there occured Access Denied error at
runtime. Also, you suspect it was caused by time issue, yes?
If there is anything I misunderstood, please feel free to let me know.
Based on my experience, access resource on remote site will often caused
security issues. But since you've mentioned that the error is after file's
been copied to local and it works well usually. I also doubt whether it is
caused by
concurrency issue on the copied file. Would you please try the following
steps:
1. copying file from a local different folder rather than a network driver
to see whether the problem remains. then, we can confirm whether this is
likely caused by the time issue or not.
2. Also , you can try accessing(read) the file after it has been copied(in
a try... catch ...block) so as to determined whether it is concurrent
visited or completely copied.
Please check out the above things, if the situation is not quite suitable,
please feel free to let me know.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
- Next message: Steven Cheng[MSFT]: "RE: urlencode and asp.net"
- Previous message: Jim Hughes: "Re: Put Data in DropDownList"
- In reply to: Brian Hanson: "File.Copy Method timing issues."
- Next in thread: Steven Cheng[MSFT]: "RE: File.Copy Method timing issues."
- Reply: Steven Cheng[MSFT]: "RE: File.Copy Method timing issues."
- Reply: Amit Singla: "RE: File.Copy Method timing issues."
- Reply: Amit Singla: "RE: File.Copy Method timing issues."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|