• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Access to the 'default.xml' path is denied.

RicherSims

Resource contributor
Messages
574
Country
dominica
I am getting the following error on a (French) user's machine. I feel I can safely confirm that the error does not come from any particular scenery, nor does it come from a corrupted default.xml file, as I have tested different ones with the same result.
ACM succesfully goes through the entire list in the scenery.cfg and then throws this error:


Code:
20:40:25 | Error! Stopping...
20:40:25 | L'accès au chemin d'accès 'default.xml' est refusé.
20:40:25 |    à System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
   à System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
   à ASToFra.AutogenConfigurationMerger.AutogenConfigurationMerger.CreateBackup()
   à ASToFra.AutogenConfigurationMerger.AutogenConfigurationMerger..ctor(String[] args)

Earlier in the log it reports:

>> Found config: D:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\autogen\default.xml.

I should note that he has 2 user profiles on his machine; a separate one for gaming it seems. Also, a backup of the default.xml exists in the ACM folder of %appdata%, but nothing else.
I have ensured that ACM is updated to the latest version, and set it to run as administrator on all user profiles. I have also tried launching FSX from another user profile, but when I do so the log does not get updated.

I am aware that this may quite simply be a matter of a weird system setup of a lone user and thus it may be difficult to diagnose without being on the machine, but I figured I would ask for any ideas before giving up.

Any help would be appreciated. Thanks in advance.
 

Attachments

Hi,

Looking at the error message it seems the backup function can't delete the old backup while making a new one. Access is refused, so looks like a permission issue. Not sure why that should happen, would the folder have different permissions?
 
It shouldn't, but if that is the case I will ask the user to move said backup to see if the problem is solved and report back.
 
New Error

Code:
22:06:38 | Error! Stopping...
22:06:38 | L'accès au chemin d'accès 'D:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\autogen\default.xml' est refusé.
22:06:38 |    à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   à 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, Boolean useLongPath, Boolean checkHost)
   à System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   à System.Xml.XmlDocument.Save(String filename)
   à ASToFra.AutogenConfigurationMerger.XMLMerger.SaveGlobalConfiguration(String fsPath)
   à ASToFra.AutogenConfigurationMerger.AutogenConfigurationMerger..ctor(String[] args)

I checked the file and folder permissions. Nothing looks out of the ordinary in the autogen or FSX folder.
 
Weird, now it's the FS folder that the access is denied. When I'm home I will double check the code, but read access should not be a problem there.
 
Back
Top