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

AIFP Error

AIFP uses a defined sequence of Registry and AppData items to locate MSFS2020 - as it does for all other versions of Flightsim. If your installation doesn't honour that sequence, how is AIFP to fnd it?

It seems most unusual for such a package to install with a path including "C:\Users\USER PC". If you open "C:\Users\USER PC\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\Packages" (assuming such a folder exists), what do you find. a screenshot would be nice.
 
AIFP uses a defined sequence of Registry and AppData items to locate MSFS2020 - as it does for all other versions of Flightsim. If your installation doesn't honour that sequence, how is AIFP to fnd it?

It seems most unusual for such a package to install with a path including "C:\Users\USER PC". If you open "C:\Users\USER PC\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\Packages" (assuming such a folder exists), what do you find. a screenshot would be nice.
Please see attached.

Thanks for your help. :)
 

Attachments

  • sshot.png
    sshot.png
    44.1 KB · Views: 204
Yes, that would seem to be it - which means there's yet a third way for MSFS2020 to be installed.

Is "USER PC" your user name, or is that generic reference?

And you're sure if you place the line "Path to FS2020=C:\Users\USER PC\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\Packages" in AIFP when AIFP is not running, AIFP doesn't find MSFS2020?

Can anyone shed some light on the trail left behind by this new installer?
 
I can confirm if I place Path to FS2020=C:\Users\USER PC\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\Packages in AIFP when its not running it does NOT work.

'USER PC' is my username for my PC.

See error continuing screenshot & text below.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NewNormalizePath(String path, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetFullPathInternal(String path)
at Microsoft.VisualBasic.FileIO.FileSystem.FindFilesOrDirectories(FileOrDirectory FileOrDirectory, String directory, SearchOption searchType, String[] wildcards, Collection`1 Results)
at Microsoft.VisualBasic.FileIO.FileSystem.FindFilesOrDirectories(FileOrDirectory FileOrDirectory, String directory, SearchOption searchType, String[] wildcards)
at AIFP3._4__Dev_.AircraftCfg.GetAllAircraftFolders(List`1& listFolders, Int32 fFSVer)
at AIFP3._4__Dev_.Common.MakeInstalledACFileItemList(String sSearchString, List`1& listACFolders_, Int32 fFSVer, List`1& listAC, Int32 fReportDups)
at AIFP3._4__Dev_.SelectAircraft.rbVer_Click(Object sender, EventArgs e)
at System.Windows.Forms.RadioButton.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.RadioButton.set_Checked(Boolean value)
at AIFP3._4__Dev_.FSVersion.FSControls_Select(List`1& controls, Int32 fFSver, Boolean bCheck)
at AIFP3._4__Dev_.SelectAircraft.SelectAircraft_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
 

Attachments

  • sshot1.png
    sshot1.png
    200.3 KB · Views: 188
I've been assuming all along that "USER PC" was a generic name. (As you can see from the exception details, Windows is complaining the path is not of valid form. AIFP just reports such an error.

I wonder if the space in your user name is the issue. in this case. Paths that contain a space usually must be surrounded by quotes

Rather that me modify AIFP (and all my other apps) on spec., please try temporarily changing your user name to something that doesn't contain a space. Instructions for doing so can be found here https://www.google.com/search?q=cha...2j0i22i30l7.9236j0j7&sourceid=chrome&ie=UTF-8
 
I've been assuming all along that "USER PC" was a generic name. (As you can see from the exception details, Windows is complaining the path is not of valid form. AIFP just reports such an error.

I wonder if the space in your user name is the issue. in this case. Paths that contain a space usually must be surrounded by quotes

Rather that me modify AIFP (and all my other apps) on spec., please try temporarily changing your user name to something that doesn't contain a space. Instructions for doing so can be found here https://www.google.com/search?q=cha...2j0i22i30l7.9236j0j7&sourceid=chrome&ie=UTF-8
Just completed fresh install of AIFP.
I have just tried changing my PC username to a name without a space.
I'm still getting the same error below.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NewNormalizePath(String path, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetFullPathInternal(String path)
at Microsoft.VisualBasic.FileIO.FileSystem.FindFilesOrDirectories(FileOrDirectory FileOrDirectory, String directory, SearchOption searchType, String[] wildcards, Collection`1 Results)
at Microsoft.VisualBasic.FileIO.FileSystem.FindFilesOrDirectories(FileOrDirectory FileOrDirectory, String directory, SearchOption searchType, String[] wildcards)
at AIFP3._4__Dev_.AircraftCfg.GetAllAircraftFolders(List`1& listFolders, Int32 fFSVer)
at AIFP3._4__Dev_.Common.MakeInstalledACFileItemList(String sSearchString, List`1& listACFolders_, Int32 fFSVer, List`1& listAC, Int32 fReportDups)
at AIFP3._4__Dev_.SelectAircraft.rbVer_Click(Object sender, EventArgs e)
at System.Windows.Forms.RadioButton.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.RadioButton.set_Checked(Boolean value)
at AIFP3._4__Dev_.FSVersion.FSControls_Select(List`1& controls, Int32 fFSver, Boolean bCheck)
at AIFP3._4__Dev_.SelectAircraft.SelectAircraft_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
 
Just noticed something. In your initial post you said:
I keep getting the attached screenshot error when I try to launch AIFP

Given the nature of the exception and that statement, I immediately assumed it was a problem with finding MSFS2020. In two pages of posts, there has been no indication the problem was other than an immediate crash upon attempting to launch MSFS2020.

But, in your screenshot above, it would seem AIFP is running and the Aircraft Editor is open. Did the latter happen automatically (it shouldn't have)? The exception report is entitled "Aircraft Editor" - different from earlier, Clearly, something has changed.

So, I wonder if perhaps changing your user name or adding that line in AIFP.ini is making a difference. I appreciate it's still not working for you, but I must have current information if I am to be of any help.

It may be that having installed MSFS2020 in (apparently) an unusual default location on the "C:" drive, the UAC is making life difficult for AIFP. We have known for a long time that installing any version of FlightSim/P3D on the C: drive is not a good idea, even though that may be the default location recommended by the manufacturer. Many others are using AIFP with MSFS2020 without difficulty. But, I expect they have installed MSFS2020 on other than the C: drive
 
As it happens I installed MSFS last night, purely by coincidence.

When you install it it goes to that path by default, and installs the initial package of about 1.6GB. However, when you play it for the first time you get some options menu up which includes an option to specify where you want it to go. For me I chose 'Z:\MSFS' and it then goes and downloads the full installation of 170GB and takes several hours to install.

I just checked my UserCFG.opt and it does indeed include 'InstalledPackagesPath "Z:\MSFS"'.
 
Thanks for letting us know, Steve. It seemed rather strange that the full MSFS would install in AppData.

It's been a while since I installed MSFS. My recollection is that it went into the full install process, including user-selection of install location, immediately after downloading the initial bit.
 
Thanks for letting us know, Steve. It seemed rather strange that the full MSFS would install in AppData.

It's been a while since I installed MSFS. My recollection is that it went into the full install process, including user-selection of install location, immediately after downloading the initial bit.
Still having problems sadly, with AIFP and getting this error message now. Also there is no game version able for me to select :(




See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at AIFP3._4__Dev_.CompileDialog.MakeTrafficFileName(String sPath_LoadedFile, Int32 fFSVer, Boolean bSuffix, Boolean bAddTrafficPrefix)
at AIFP3._4__Dev_.CompileDialog.InitPath_Traffic(String sPath, Boolean bMergedFiles)
at AIFP3._4__Dev_.MainPanel.NewSourceFile(String sPath)
at AIFP3._4__Dev_.File_Handling.LoadFile(String sPath, List`1& listFP, List`1& listAC, List`1& listAP)
at AIFP3._4__Dev_.File_Handling.LoadMainFile(String sPath)
at AIFP3._4__Dev_.MainPanel.mnuFiles_Open_TextZip_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
AIFP3
Assembly Version: 3.4.1.2
Win32 Version: 3.4.1.2
CodeBase: file:///C:/Users/USER%20PC/Desktop/AIFP/AIFP3.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 

Attachments

  • AIFP.png
    AIFP.png
    34.6 KB · Views: 190
Jamesdude, two things:
Still having problems sadly, with AIFP and getting this error message now.
First, You haven't told us whether or not you have fixed the MSFS installation. If MSFS fully operational? AIFP is still not detecting the presence of MSFS - and it won't until you fix the installation issues.

Secondly, you are using a version of AIFP that was introduced just after MSFS became available. AIFP is a living product, continually being updated. There have been several updates since then - one of which likely fixes the cause of the exception you experienced. Please install the latest release, (3.4.3.7either by enabling update detection or by downloading directly from http://stuff4fs.com
 
Motishow, several problems have been discussed inn this thread. To which one are you referring? Is this the same problem you reported in the other thread? Please note the original problem reported above was due to MSFS not being properly installed.
 
I have the same problem and have unstalled the latest version of AIFP, did tou solve it?
No Still Not Resolved this problem, looking on Youtube several other MSFS users trying to load Flight Plans on AIFP are also having the same issue with no resolution.
 
I am away from my development system for a few days. YouTube is a strange place to report issues with AIFP.

As I have said in another thread reporting this issue, I can't fix what I cant reproduce and nobody yet has given me instructions/info to help me duplicate the error. I updated my own MSFS earlier this week without issue.
 
I am away from my development system for a few days. YouTube is a strange place to report issues with AIFP.

As I have said in another thread reporting this issue, I can't fix what I cant reproduce and nobody yet has given me instructions/info to help me duplicate the error. I updated my own MSFS earlier this week without issue.
I appreciate all of your help - I have done a complete re-install of MSFS and changed the Username for my PC as requested, but still have the 'this path is not of legal form' error when trying to load flight plans (and failing to do so)

Please see screenshots/attachments
 

Attachments

  • 1.png
    1.png
    144.8 KB · Views: 192
  • 2.png
    2.png
    72.8 KB · Views: 183
Something has changed since you first reported this issue. In the second screenshot you sent, AIFP had not found any Flightsim installations. In the one immediately above, it has found both PV4 and MSFS. Have you tried deleting AIFP.ini and AirportList.dat before starting.

From a re=analysis of the exception data above, it appears AIFP is having difficulty finding the one or more aircraft. Has the location of aircraft data in the Steam version changed in the latest update?
 
Something has changed since you first reported this issue. In the second screenshot you sent, AIFP had not found any Flightsim installations. In the one immediately above, it has found both PV4 and MSFS. Have you tried deleting AIFP.ini and AirportList.dat before starting.

From a re=analysis of the exception data above, it appears AIFP is having difficulty finding the one or more aircraft. Has the location of aircraft data in the Steam version changed in the latest update?
I've done some re-jigging of the AIFP.ini folder and I've managed to get it working, going through all of the previous comments and double checking everything.

Thank you for your help, only thing I can't see is my IVAO planes on AIFP to assign them to flight plans - guess I'll keep looking to find how to do that.
 
I've done some re-jigging of the AIFP.ini folder
Sounds mysterious. Note that AIFP re-writes that file upon each exit

only thing I can't see is my IVAO planes
It appears from an item I've found on Flightsim.com that IVAO aircraft.cfg files do not conform to FS/P3D requirements. As such, AIFP won't "see" them.

If you send me a sample IVAO aircraft (you can send it to don at stuff4fs dot com) I'll see if AIFP can be made to process them without major surgery.
 
I have found a source of IVAO aircraft for MSFS and installed same. AIFP has no difficulty in finding them.

Perhaps your IVAO aircraft are not installed in the normal manner, that is, in the Community folder in a folder which contains a first-level sub-folder named "SimObjects" which, in turn, contains a subfolder named "Airplanes" that contains one or more aircraft folders. AIFP will also find such aircraft if installed in the Official\OneStore or Official\Steam folders.

Please check that you aircraft installation conforms
 
Back
Top