J'ai reçu un IOException très étrange lors de l'écriture dans un fichier XML:Erreur System.IO.Exception: "L'opération demandée ne peut pas être effectuée sur un fichier avec une section mappée par l'utilisateur ouverte."
System.IO.IOException: The requested operation cannot be performed on a file with a user-mapped section open.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
at System.Xml.XmlDocument.Save(String filename)
L'erreur est survenue quand j'ai appelé la fonction Enregistrer (chaîne) de XmlDocument.
Des idées sur ce qui s'est passé?
Il pourrait également être transitoire (juste arrivé à moi, la prochaine tentative d'écriture était bien, mais j'échoué sur le fichier suivant, qui a ensuite travaillé très bien sur la prochaine tentative), comme quand un scanner antivirus bascule dans votre monde. –