Intercity Airways Discussion Forums

Intercity Discussion Forums => ACARS => Topic started by: Jan Naslund on Jun 14, 2019 09:56

Title: ACARS error on startup [Solved]
Post by: Jan Naslund on Jun 14, 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.



Title: Re: ACARS error on startup
Post by: Chris Hulme on Jun 14, 2019 12:57
Sorry for the slow reply my PC has been out of action for a few days, are you running as admin?
Title: Re: ACARS error on startup
Post by: Jan Naslund on Jun 14, 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
Title: Re: ACARS error on startup
Post by: Jan Naslund on Jun 14, 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
Title: Re: ACARS error on startup
Post by: Jan Naslund on Jun 14, 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 (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
Title: Re: ACARS error on startup
Post by: Chris Hulme on Jun 18, 2019 16:56
What operating system and sim are you using?
Title: Re: ACARS error on startup
Post by: Graham Bannister on Jun 20, 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
Title: Re: ACARS error on startup
Post by: Jan Naslund on Jun 21, 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
Title: Re: ACARS error on startup
Post by: Jan Naslund on Jun 23, 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
Title: Re: ACARS error on startup
Post by: Chris Liu on Jun 24, 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 (https://www.microsoft.com/en-gb/download/details.aspx?id=49981) and if that fixes your problems?
Title: Re: ACARS error on startup
Post by: Jan Naslund on Jun 24, 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 (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
Title: Re: ACARS error on startup
Post by: Chris Liu on Jun 24, 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.
Title: Re: ACARS error on startup
Post by: Jan Naslund on Jun 28, 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
Title: Re: ACARS error on startup
Post by: Chris Hulme on Jun 29, 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.
Title: Re: ACARS error on startup [NOT yet Solved]
Post by: Juergen Vollmer on Sep 01, 2019 20:03
Sorry, but it seems that this problem persists... I just now installed the latest version from the download here and I get a whole series of errors, the first one being that the file D:\Program Files (x86)\Intercity ACARS\Schedules.mdb could not be found!
And indeed there is no such file in my directory... Apparently it was not installed.

Where can I find that file and how should I proceed?

For information I have attached the full details of the error messages I get.

Thank you for your help!
Cheers
Juergen
Title: Re: ACARS error on startup [Solved]
Post by: Chris Hulme on Sep 02, 2019 03:38
When you launch ACARS it should download the latest version of the schedules. Try running update.exe as admin that should download the file for you
Title: Re: ACARS error on startup [Solved]
Post by: Juergen Vollmer on Sep 02, 2019 09:58
Quote from: Chris Hulme on Sep 02, 2019 03:38
When you launch ACARS it should download the latest version of the schedules. Try running update.exe as admin that should download the file for you

THANK YOU, Chris!

THAT was it, now all seems just fine. 8)
Again, thank you for your help and speedy reply.
Have a great week and take care,
Cheers
Juergen