RE: File.Copy Method timing issues.

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 02/07/04


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.)



Relevant Pages

  • Re: Craig Titus, Psycho Killer?
    ... >>looks remotely like the truth I will be sure to point it out. ... because the odds of you posting ... >>impossibly remote. ... Seriously TBR, are you honestly saying that you aren't a troll? ...
    (misc.fitness.weights)
  • Re: Remote Tab - My Computer Properties - Controls Disabled??
    ... This posting is provided "AS IS" with no warranties, ... "Jeff Swift" wrote in message ... > "allow" policy that you selected. ... > "allow" remote assistance invitations but "not allow" remote desktop ...
    (microsoft.public.windows.server.general)
  • Re: Cant use Remote Desktop Connection
    ... This posting is provided "AS IS" with no warranties. ... i get the access license to install. ... On the win server 2003 ... How to Setup Windows, Network, Remote Access on http://www.HowToNetworking.com ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Remote Desktop via VPN - black screen
    ... This posting is provided "AS IS" with no warranties. ... name="Black screen while connecting to TS">Black screen while connecting to ... Network, Remote Access on http://www.HowToNetworking.com ...
    (microsoft.public.windowsxp.work_remotely)
  • Connection to admin functions and shares XP Pro
    ... All normal file sharing, print sharing, drive mappings ... I also cannot manage services remotely ie, ... click on services - Access denied Error 5. ...
    (microsoft.public.windowsxp.security_admin)

Loading