Author Topic: Unhandled Exception Live Update  (Read 5693 times)

carlosmax50

  • Newbie
  • *
  • Posts: 14
Re: Unhandled Exception Live Update
« Reply #30 on: December 31, 2022, 10:44:38 pm »
ok I thought that was only me. I even removed gsx.

CPTAlp

  • Beta tester
  • Newbie
  • *****
  • Posts: 38
Re: Unhandled Exception Live Update
« Reply #31 on: January 01, 2023, 12:20:49 am »
Same for me, whenever I run FSDT Live Update, the program crashes. Here's the stack trace:

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

************** Exception Text **************
System.Security.Cryptography.CryptographicException: Length of the data to decrypt is invalid.
   at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
   at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
   at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at System.IO.Stream.Dispose()
   at Couatl_Updater2.Program.DecryptFileToBytes(SymmetricAlgorithm alg, String file)
   at Couatl_Updater2.Product.ConditionalDownload(String name, String checkFolder, String remoteFolder, String localFolder, String relativeFolder, String cacheFile, String backupFile, Boolean removeLocalNotOnRemote, Boolean recursive, Boolean bIgnoreModelCFG, Boolean bReloadCache, String fileToSign, Boolean onlyFileToSign, List`1 foldersExcluded, Boolean decryptFile)
   at Couatl_Updater2.Program.ReconfigureGSX()
   at Couatl_Updater2.GSXMSFS.DoUpdate()
   at Couatl_Updater2.Product.Update(Boolean forceUpdate)
   at Couatl_Updater2.Program.DoAllUpdates()
   at Couatl_Updater2.FrmMain.UpdateAllProducts()
   at Couatl_Updater2.FrmMain.FrmMain_Shown(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnShown(EventArgs e)
   at System.Windows.Forms.Form.CallShownEvent()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4515.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Couatl_Updater2
    Assembly Version: 2.0.8399.21996
    Win32 Version: 2.0.2.87
    CodeBase: file:///E:/FS%20Addons/Addon%20Manager/Couatl_Updater2.exe
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4536.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.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4550.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.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4584.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.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.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4590.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
QlmLicenseLib
    Assembly Version: 16.0.22273.2
    Win32 Version: 16.0.22273.2
    CodeBase: file:///E:/FS%20Addons/Addon%20Manager/QlmLicenseLib.DLL
----------------------------------------
System.Web.Services
    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.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
System.Numerics
    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.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.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
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Security
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4261.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
System.Management
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4435.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
Newtonsoft.Json
    Assembly Version: 13.0.0.0
    Win32 Version: 2.0.2.87
    CodeBase: file:///E:/FS%20Addons/Addon%20Manager/Couatl_Updater2.exe
----------------------------------------

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


CPTAlp

  • Beta tester
  • Newbie
  • *****
  • Posts: 38
Re: Unhandled Exception Live Update
« Reply #32 on: January 01, 2023, 02:12:39 am »
I think it will be fixed because this is literally happening to majority of the users.

niftyguy239

  • Newbie
  • *
  • Posts: 2
Re: Unhandled Exception Live Update
« Reply #33 on: January 01, 2023, 04:38:54 am »
Good Evening,

If you are using FSDT scenery purchased through the MS Marketplace and you are attempting to download the new GSX update.  I identified a workaround that will allow you to download the update.  This update will fail if you are using FSDT scenery purchased in the marketplace only and found in your "Official" folder. 

1) Before running Installer or Live Update, navigate to your local/packages folder.  From there you will have two choices either your community folder or the official folder.

2) Select the "Official" folder.  Navigate and find your FSDT airports.  Then cut them from your official folder and move them to your desktop or other location outside of the "Official" folder.  Make sure there are no other FSDT sceneries in the Official folder.

3) Run the Live Updater or Installer and update GSX as normal it should work as intended.

4) When the update is complete, paste your FSDT sceneries back into your "Official" folder.

5) Boot into MSFS and enjoy the update.


I hope this will help the developer identify where the issue is, because there is one and it's with their sceneries when attempting to download the GSX config files for those airports.

Let me know if this works for you as it did for me. 
« Last Edit: January 01, 2023, 03:34:32 pm by niftyguy239 »

Seth2413

  • Jr. Member
  • **
  • Posts: 60
Re: Unhandled Exception Live Update
« Reply #34 on: January 01, 2023, 06:36:04 am »
Thanks Nifty im sure people will appreciate your assistance with this.  But I will say that this shouldnt have to be the solution for a decently priced payware program.  Its just another layer of complication and messiness that builds up garbage in our files.  Ive just removed everything all together as best as I could guess seeing as there is no real uninstall process (alarm bells right there!).  I think i'll stay away for a while and get some sanity back. 

sharky44

  • Newbie
  • *
  • Posts: 2
Re: Unhandled Exception Live Update
« Reply #35 on: January 01, 2023, 10:35:31 am »
Thanks Nifty, this worked for me , now hopefully a fix will be forth coming, saying that I can see why Umberto could not reproduce the fault, unlikely he would have bought his own software from the marketplace lol. Happy New Year to all.

kmoutot

  • Newbie
  • *
  • Posts: 6
Re: Unhandled Exception Live Update
« Reply #36 on: January 01, 2023, 11:18:39 am »
Happy New Year to all the community.

Thank you for the trick, it works for me too.

Of course this is not "the" solution and I'm pretty sure FSDT team will fix it shortly.

Anyway, this trick helps and is quite simple to implement.

Thank you and enjoy your day.

Kristoff

FrittenFritz

  • Newbie
  • *
  • Posts: 17
Re: Unhandled Exception Live Update
« Reply #37 on: January 01, 2023, 04:33:47 pm »
Thanks for the Workaround :) seems to work for me aswell.

Can i invite you to our GSX Discord Server? we also have some kind of Forum there for quick help too. To date we have around 1250 Members :) Everyone is welcome!

https://discord.gg/VJ94nzXa

jandrace

  • Newbie
  • *
  • Posts: 2
Re: Unhandled Exception Live Update
« Reply #38 on: January 01, 2023, 05:36:38 pm »
I have the same problem when trying to update. Exception caused by Key West KEYW

GSX will now not load and cannot be installed. If the addition of owned encrypted airports was at the end of the installer rather than at the front at least GSX would install. As I purchased KEYW through the marketplace it is difficult to remove completely from MSFS. Hope someone at FSDT responds soonest.

geoffda

  • Newbie
  • *
  • Posts: 15
Re: Unhandled Exception Live Update
« Reply #39 on: January 01, 2023, 07:29:05 pm »
I'm also getting the System.Security.Cryptography.CryptographicException when trying to update GSX whether through the installer or the updater. For me it appears to be trying to execute the step "Updating FSDT Chicago O'Hare for MSFS." That was a Marketplace purchase for me, so perhaps that is the crux of the issue for those of us getting this exception.

geoffda

  • Newbie
  • *
  • Posts: 15
Re: Unhandled Exception Live Update
« Reply #40 on: January 01, 2023, 07:33:11 pm »
Just saw @niftyguy239's post here: http://www.fsdreamteam.com/forum/index.php/topic,28881.0.html. Removing FSDT products bought from the MSFS Marketplace from the community folder prevents the exception and allows the update to succeed.
« Last Edit: January 01, 2023, 07:34:55 pm by geoffda »

geoffda

  • Newbie
  • *
  • Posts: 15
Re: Unhandled Exception Live Update
« Reply #41 on: January 01, 2023, 07:37:13 pm »
See http://www.fsdreamteam.com/forum/index.php/topic,28881.0.html. You need to remove any FSDT products purchased through the MSFS Marketplace from the community folder to work around this problem.

Keirtt

  • Newbie
  • *
  • Posts: 43
Re: Unhandled Exception Live Update
« Reply #42 on: January 01, 2023, 07:38:17 pm »
This seemed to work for me as well. Thanks!

geoffda

  • Newbie
  • *
  • Posts: 15
Re: Unhandled Exception Live Update
« Reply #43 on: January 01, 2023, 07:38:33 pm »
There are several threads on this, but the work-around (see here: http://www.fsdreamteam.com/forum/index.php/topic,28881.0.html) is to remove any FSDT add-ons purchased through the MSFS Marketplace from the community folder and then update.

Jim610

  • Newbie
  • *
  • Posts: 5
Re: Unhandled Exception Live Update
« Reply #44 on: January 01, 2023, 09:01:18 pm »
Thanks Niffty, your a star.