System.UnauthorizedAccessException: Access to the path 'C:\Users\chris\Desktop\Travaux_immeubles\Travaux_immeubles\bin\Debug\Donnees\liste_immeubles.xml' is denied.
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.XmlWriter.Create(String outputFileName, XmlWriterSettings settings)
at System.Xml.Linq.XElement.Save(String fileName, SaveOptions options)
at System.Xml.Linq.XElement.Save(String fileName)
at Travaux_immeubles.Window1.actualiser() in C:\Users\chris\Desktop\Travaux_immeubles\Travaux_immeubles\Window1.xaml.cs:line 421
A first chance exception of type 'System.UnauthorizedAccessException' occurred in System.Xml.dll
Partager