1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unhandled exception error

Discussion in 'AI Flight Planner' started by samcaine, 1/12/10.

  1. samcaine

    samcaine

    Joined:
    7/6/07
    Messages:
    62
    Country:
    wales
    Apologies if this has been reported before, although I doubt it as it's been occurring for all v2 series. I don't have any issues when using v1 series.

    When I try to set the Target Version I get an "Unhandled exception" error, "Access to path 'C:\ProgramData\Microsoft\FP Installer\1.0.0.0' is denied"

    However, I don't have the folder "\FP Installer\"

    I'm using W7-64 with all .Net versions installed and updated and AIFP is installed in C:\Program Files (x86)\FlightSim\AI Flight Planner

    Code:
    ************** Exception Text **************
    System.UnauthorizedAccessException: Access to the path 'C:\ProgramData\Microsoft\FP Installer\1.0.0.0' is denied.
       at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
       at System.Windows.Forms.RadioButton.PerformAutoUpdates(Boolean tabbedInto)
       at System.Windows.Forms.RadioButton.set_Checked(Boolean value)
       at AIFP2.FPEditor.chkFSX_Click(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.RadioButton.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.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    ----------------------------------------
    AIFP2
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/FlightSim/AI%20Flight%20Planner/AIFP2.exe
    ----------------------------------------
    Microsoft.VisualBasic
        Assembly Version: 8.0.0.0
        Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    System.Core
        Assembly Version: 3.5.0.0
        Win32 Version: 3.5.30729.4926 built by: NetFXw7
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Deployment
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    Accessibility
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.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>
    I hope it's nothing I'm doing wrong.
  2. gadgets

    gadgets Resource contributor

    Joined:
    8/11/05
    Messages:
    4,466
    Country:
    ca-britishcolumbia
    Nope, nothing you are doing. It sounds like a bit of test code I forget to delete.

    I'll take a look.

    Don
  3. gadgets

    gadgets Resource contributor

    Joined:
    8/11/05
    Messages:
    4,466
    Country:
    ca-britishcolumbia
    samcaine, please check your AIFP.ini file and tell me what are the entries for FS9 Base Folder and FSX Base Folder.

    Don

    EDIT: Also, did you ever install an early version of AIFP2 under its test name FP Installer?
    Last edited: 1/12/10
  4. samcaine

    samcaine

    Joined:
    7/6/07
    Messages:
    62
    Country:
    wales
    Hi Don,

    Code:
    FS9 Base Folder=C:\Program Files (x86)\Microsoft Games\Flight Simulator 9
    FSX Base Folder=C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X
    
    I honestly couldn't say, but I can't rule it out. Would a re-install solve the issue do you think?
  5. gadgets

    gadgets Resource contributor

    Joined:
    8/11/05
    Messages:
    4,466
    Country:
    ca-britishcolumbia
    I doubt it. You could try it.

    I should have asked before. Are both these paths still valid?. For whatever reason, it appears that AIFP didn't finds FS9.exe or FSX.exe (as applicable) in the specified path.

    I know where the "FP Installer" label comes from. (I won't try to explain.)
    Don
  6. gadgets

    gadgets Resource contributor

    Joined:
    8/11/05
    Messages:
    4,466
    Country:
    ca-britishcolumbia
    I just had a similar thing occur. I suspect you setting the target version was the first time you had attempted to access that version of FS from AIFP.

    The first time AIFP is asked to access a version of FS, it had to first find it, which requires access to the registry. Windows 7 (and Vista) won't let you access the registry or private variables without administrator privileges - which presumably, you did not have.

    Start AIFP with administrator privileges and it should be OK.

    Incidentally, you do have a folder named "C:\ProgramData\Microsoft\FP Installer\1.0.0.0". It was created by Windows 7 the first time you ran AIFP. In future releases, it will be called "AI Flight Planner\2.0.0.0".

    Don
  7. samcaine

    samcaine

    Joined:
    7/6/07
    Messages:
    62
    Country:
    wales
    Thanks Don, that did the trick. I'd set v1 to administrator privileges but forgot to do the same for v2 :eek:

    Subconsciously, because the shortcut has them I must have assumed it would cascade down to the prog.

    I didn't before, but now it's run with privileges, it's there.

    Thanks again

Share This Page