• 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.

File access denied

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,689
Country
netherlands
Hi all,

In my bugtracker I see reports quite often from people who get errors in ModelConverterX that the file they try to read or write can not be accessed due to the security restrictions. I have trouble reproducing these issues on my computer, so I can't fix them for the moment.

For example, if I open the file in another program, so that it is locked, I do get a nice warning here in the event log. But from the error messages I assume that is not the case for everybody.

If you encounter such errors, can you please provide me some more information on how to reproduce them? For example what did you try to do? Which OS version you have? etc.

Thanks already,
 
Nobody? I still get multiple of these error reports each week. If anybody reading this encounters them, please give me some more details so I can reproduce (and fix) the issue.
 
Arno,...

Maybe giving a IP address can at least determine what part of the world its coming from? Just trying to help :)
 
At the moment I don't store that kind of information with bug reports. I have also been thinking about adding OS information to the report, as it might be OS specific.
 
Hi,

Let me bump this thread again. I still see these errors very often. Sometimes people write that the file is in use by FS, but on my machine I can't reproduce the problem.

Does anybody have a good way to make sure FS does lock a file? Maybe I am testing wrong? What I now do is just start FS and go to the area where the scenery is. But I can still open the BGL files after that (and also delete or overwrite them).

I am wondering if it might depends on the folder where FS is installed. I don't have it in Program Files here.

Any ideas are welcome,
 
Arno,

I don't know if this is any help. In FSX I have observed that ground polygon bgls are not locked. They may be deleted or overwritten while the scenery is in use. The airport and cvx bgls are locked. Why Windows treats them differently I don't know but it does. A file that cannot be accessed because of security restrictions has to do with the folder that it is stored in. You probably need to allow access to both the folder and the file. For instance literally everything that is in the Windows folder is access restricted.

Ed
 
Hi,

I was testing with bgl files that contain objects and their placement. I would expect them to be similar to airport bgl files.

I'll do some more testing with the program files folder. The errors indeed include security permissions. It's only weird I can't reproduce it completely on my pc.
 
For exporting: I think it's just because of folder security settings in the P3D/FSX installation folder (if people are trying to export directly there). At least that was the case for myself until I edited the permissions.

For opening a file while running (FSX or P3D): I almost always get the warning because files are being used. After disabling the scenery, it loads just fine. As you say though, in the past I remember I was able to open the files in MCX while FS would be running still.
For small (or library files) sometimes it doesn't bother, but usually it will give you the warning.
 
Last edited:
I see errors both with reading and writing. I'll check if there is a pattern if it happens only in the program files folder or not. Maybe modelconverterx needs to ask for more permissions through the UAC functionality of windows or so.
 
Hi,

I did some more comparison of the different error reports and there are indeed two types of errors:

1. Trying to read a file that is in use by another process (most likely fsx/p3d)
2. Not having sufficient permissions to write a file, this usually happens in the program files folder.

I'll continue to search for ways to deal with this (other than crashing as now happens for those users).
 
I still don't get it. When I try to save in a program files folder I get the attached message when I am selecting the filename to save to. So Windows doesn't even allow me to save it. So how can other people get an error? It seems they don't get this message.
 

Attachments

  • Image2013-12-02 2103.54.842.jpg
    Image2013-12-02 2103.54.842.jpg
    36.7 KB · Views: 411
Hi,

I think I have fixed the issues now when the file is in use by another application. The code I had to check if a file was in use seemed to work differently from the class that actually opened them for reading. So although one reported they were not in use, the other still threw an error. That should be fixed now and it should be possible to load files that are in use by FS.

I will continue to see what I can do for the other error about not having permission to write to certain folders.
 
Arno you would need to change the permissions of the folder so that the user using MCX would be able to write to that folder on the fly or else the user would have to change the folder permissions first.

Ed
 
Hi,

I don't believe that a tool like modelconverterx should alter permissions. But it shouldn't crash either. So I plan to show an error in the event log when the tool can't write to the specified folder. And if possible maybe ask for additional permissions (admin rights) to continue.
 
Back
Top