Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File.Copy and lock file
Message
From
19/02/2014 11:13:46
 
 
To
19/02/2014 10:53:28
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01594636
Message ID:
01594667
Views:
37
>>That's what I don't understand - what makes you believe that the copy has actually started ?
>
>That is the only one capable of copying a file in there. And, the error message can only be triggered if the file already exists, or a portion of it.

No. If you have overwrite 'true' then the fact that the destination already exists should not be a factor. See the code Gregory posted - an exception can be thrown if permissions fail.

>>Is 'MyFile' the source or destination ? What is the exception type ? Any inner exception ?
>
>Destination
>
>at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
> at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
> at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
> at Framework.FileFunction.CopyFile()

What's the errorCode in WinIOError() ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform