Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File.Copy and lock file
Message
De
19/02/2014 11:13:46
 
 
À
19/02/2014 10:53:28
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01594636
Message ID:
01594667
Vues:
30
>>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() ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform