Author Topic: ACARS error on startup  (Read 105 times)

Jan Naslund

  • Pilots
  • Pilots
  • *
  • Posts: 12
ACARS error on startup
« on: Fri 14 Jun 2019, 09:56 »
Hi,

Every time i start ACARS i get an error and normally it just flashes past and then the message disappears but today i managed to copy the details.

Looks like it's trying to delete the C:\Program Files (x86)\Intercity ACARS\Schedules.mdb file but it does not have access.

Is there a reason for trying to delete this file? I mean, is there a check that I am running the latest schedule or something? Perhaps it wants to replace the database file with a new version?

Error details:

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

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Intercity ACARS\Schedules.mdb' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at System.IO.File.Delete(String path)
   at Microsoft.VisualBasic.FileIO.FileSystem.DeleteFileInternal(String file, UIOptionInternal showUI, RecycleOption recycle, UICancelOption onUserCancel)
   at Microsoft.VisualBasic.MyServices.FileSystemProxy.DeleteFile(String file)
   at IC_ACARS.IC_Start.UpdateTimer_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.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.7.3416.0 built by: NET472REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Intercity ACARS
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Intercity%20ACARS/Intercity%20ACARS.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.7.3056.0 built by: NET472REL1
    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.7.3416.0 built by: NET472REL1LAST_B
    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.7.3362.0 built by: NET472REL1LAST_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.7.3324.0 built by: NET472REL1LAST_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.7.3056.0 built by: NET472REL1
    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.7.3056.0 built by: NET472REL1
    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.7.3056.0 built by: NET472REL1
    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.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.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>

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.




Chris Hulme

  • Management
  • *****
  • Posts: 551
    • Intercity Airways
Re: ACARS error on startup
« Reply #1 on: Fri 14 Jun 2019, 12:57 »
Sorry for the slow reply my PC has been out of action for a few days, are you running as admin?

Jan Naslund

  • Pilots
  • Pilots
  • *
  • Posts: 12
Re: ACARS error on startup
« Reply #2 on: Fri 14 Jun 2019, 14:05 »
Hi,

No. I just got a similar error (access issue) but now FSUIPCClient.dll. See below. Will try to run as admin.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Intercity ACARS\FSUIPCClient.dll' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at System.IO.File.Delete(String path)
   at Microsoft.VisualBasic.FileIO.FileSystem.DeleteFileInternal(String file, UIOptionInternal showUI, RecycleOption recycle, UICancelOption onUserCancel)
   at Microsoft.VisualBasic.MyServices.FileSystemProxy.DeleteFile(String file)
   at IC_ACARS_Updater.IC_Update.UpdateFiles()
   at IC_ACARS_Updater.IC_Update.Timer1_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Br / jan

Jan Naslund

  • Pilots
  • Pilots
  • *
  • Posts: 12
Re: ACARS error on startup
« Reply #3 on: Fri 14 Jun 2019, 14:08 »
Hi,

Ran as Admin and now it seems to work fine :)

Why do I need to run it as admin?

Best rgs / Jan

Jan Naslund

  • Pilots
  • Pilots
  • *
  • Posts: 12
Re: ACARS error on startup
« Reply #4 on: Fri 14 Jun 2019, 21:42 »
Hi,

Still problems. After I ran it as Admin it seemed to work fine but it never detected my arrival.
Started ACARS not as admin as this has worked before (just need to remember to click "off Blocks".
Now i am having a problem when clicking "Off Blocks". I get:

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

************** Exception Text **************
System.InvalidCastException: It's not possible to convert the string http://www.viaintercity.com/acar to the type Double. ---> System.FormatException: Input string was not in a correct format.
   at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
   --- End of inner exception stack trace ---
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value)
   at IC_ACARS.IC_Logger.SendPOS()
   at IC_ACARS.IC_Logger.OffBlocks_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Label.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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)

Also, ACARS does not detect that i have landed and parked.

So now I am not able to file any flight reports at all :(

Br  /Jan

Chris Hulme

  • Management
  • *****
  • Posts: 551
    • Intercity Airways
Re: ACARS error on startup
« Reply #5 on: Tue 18 Jun 2019, 16:56 »
What operating system and sim are you using?

Graham Bannister

  • Pilots
  • Pilots
  • *
  • Posts: 93
  • Upward and Onward
Re: ACARS error on startup
« Reply #6 on: Thu 20 Jun 2019, 17:33 »
Not sure if this is related, however a couple days ago I attempted to do a flight.
Started ACARS correctly, however flight was not showing up in Live Flight Tracker.Completed flight and when submitted nothing was updated.

Will try another later this week and see if its still happening.
GB

Jan Naslund

  • Pilots
  • Pilots
  • *
  • Posts: 12
Re: ACARS error on startup
« Reply #7 on: Fri 21 Jun 2019, 09:31 »
Hi,

I am using xplane 11 on a 64-bit Windows 10 Home system.

I think i will try a re-install to see if that helps.

Happy midsummer everyone! :)
 / Jan
« Last Edit: Fri 21 Jun 2019, 09:50 by Jan Naslund »

Jan Naslund

  • Pilots
  • Pilots
  • *
  • Posts: 12
Re: ACARS error on startup
« Reply #8 on: Sun 23 Jun 2019, 10:17 »
Hi,

I reinstalled ACARS but I have the same problem.

I checked my version of .NET Framework and I get a bit confused as it says I should have a subkey called Full (which I don't have) but It seems I already have version 4.7.03056 which is later than version 4.5.

See the attached picture.

The question is, do i have have 4.5 or later or not?

Br  / Jan

Chris Liu

  • Management
  • *****
  • Posts: 993
    • Intercity Airways
Re: ACARS error on startup
« Reply #9 on: Mon 24 Jun 2019, 01:11 »
.NET doesn't work quite like always, sometimes newer sub versions don't always older subversions. I believe you need version 4.6.1, could you do us a favour and see if you can install it from https://www.microsoft.com/en-gb/download/details.aspx?id=49981 and if that fixes your problems?

Jan Naslund

  • Pilots
  • Pilots
  • *
  • Posts: 12
Re: ACARS error on startup
« Reply #10 on: Mon 24 Jun 2019, 18:21 »
Hi,

Ok i understand but I am a bit hesitant to do that as it's a framework and is used as an API for a lot of applications.

I don't know so much about this so if I downgrade it to 4.6.1 perhaps some of my applications wont work....

I don't know but are not the .NET versions backwards compatible? If they are, this problem should not occur.

I get this error now every time i click on "Off Blocks":
System.InvalidCastException: It's not possible to convert the string http://www.viaintercity.com/acar to the type Double.

   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value)
   at IC_ACARS.IC_Logger.SendPOS()
   at IC_ACARS.IC_Logger.OffBlocks_Click(Object sender, EventArgs e)

I am not a programmer but i have coded a bit and it seems that it's trying to put/convert a String containing a URL into a Double which will not work.
Perhaps this in a call to a .NET API or something else . I don't know but could it not be possible to look at the ACARS code and work around the problem? The "Value" fed into the ToDouble method must contain the URL. Perhaps it's possible to trace why that happened?

I am a bit hesitant to downgrade the .NET version, is there anything else to try?

Best Rgs / Jan

Chris Liu

  • Management
  • *****
  • Posts: 993
    • Intercity Airways
Re: ACARS error on startup
« Reply #11 on: Mon 24 Jun 2019, 22:43 »
Hi Jan, I looked in to a bit more and it seems 4.7 overrides 4.6, apparently if required we can request our code to behave like it did on 4.6 if we get any compatibility issues but we're still investigating that. Hopefully the revert to an older ACARS has fixed issues, but if not do let us know.

Jan Naslund

  • Pilots
  • Pilots
  • *
  • Posts: 12
Re: ACARS error on startup
« Reply #12 on: Fri 28 Jun 2019, 19:06 »
Hi Chris,

Just made a flight using the older version of ACARS and now I can send reports again. Good job :)

Best Rgs / Jan

Chris Hulme

  • Management
  • *****
  • Posts: 551
    • Intercity Airways
Re: ACARS error on startup
« Reply #13 on: Sat 29 Jun 2019, 19:01 »
Glad it's all sorted just seen in your first post which I missed first time saying it downloads the schedules, this is correct it downloads each time it starts to make sure it has the correct version. I did have this on an adhoc basis but it proved to be a bit of a pain, so was easiest to download it each time it starts as it's such a small file theres very little slow down on launch for the user.