CUAHSI / HydroDesktop

HydroDesktop is a free and open source GIS enabled desktop application that helps you search for, download, visualize, and analyze hydrologic and climate data registered with the CUAHSI Hydrologic Information System. HydroDesktop is part of the legacy CUAHSI toolkit and is not under active development. Click the "releases" link below to download the latest installer for Microsoft Windows.
73 stars 20 forks source link

Fatal Error #119

Open xhqiao89 opened 6 years ago

xhqiao89 commented 6 years ago

jpollak[CodePlex]
Version: 1.6.8.3 Description: Error: System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.

1) Could not load file or assembly 'DotSpatial.Plugins.ExtensionManager, Version=0.11.9.8, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Resulting in: An exception occurred while trying to create an instance of type 'HydroDesktop.DownloadExtensions.ExtensionDownloader'.

Resulting in: Cannot activate part 'HydroDesktop.DownloadExtensions.ExtensionDownloader'.

Element: HydroDesktop.DownloadExtensions.ExtensionDownloader --gt HydroDesktop.DownloadExtensions.ExtensionDownloader --gt DirectoryCatalog (Path=quotC:\Program Files\CUAHSI HIS\HydroDesktop 1.6.8\Application Extensionsquot)

Resulting in: Cannot get export 'DotSpatial.Extensions.ISatisfyImportsExtension (ContractName=quotDotSpatial.Extensions.ISatisfyImportsExtensionquot)' from part 'HydroDesktop.DownloadExtensions.ExtensionDownloader'.

Element: DotSpatial.Extensions.ISatisfyImportsExtension (ContractName=quotDotSpatial.Extensions.ISatisfyImportsExtensionquot) --gt HydroDesktop.DownloadExtensions.ExtensionDownloader --gt DirectoryCatalog (Path=quotC:\Program Files\CUAHSI HIS\HydroDesktop 1.6.8\Application Extensionsquot)

Resulting in: Cannot set import 'DotSpatial.Controls.AppManager.SatisfyImportsExtensions (ContractName=quotDotSpatial.Extensions.ISatisfyImportsExtensionquot)' on part 'DotSpatial.Controls.AppManager'.

Element: DotSpatial.Controls.AppManager.SatisfyImportsExtensions (ContractName=quotDotSpatial.Extensions.ISatisfyImportsExtensionquot) --gt DotSpatial.Controls.AppManager

at System.ComponentModel.Composition.CompositionResult.ThrowOnErrors(AtomicComposition atomicComposition)

at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch)

at DotSpatial.Controls.AppManager.LoadExtensions() at HydroDesktop.MainApplication.MainForm..ctor() at HydroDesktop.MainApplication.Program.Main(String[] args)

xhqiao89 commented 6 years ago

smithry[CodePlex]
I only have one username, so I suggest that Jacob and Eric try this and log on to each others' usernames.

xhqiao89 commented 6 years ago

danames[CodePlex]
Need to test this by trying to install under one user name and uninstall under another name. Also need to make sure that the software fully uninstalls...

xhqiao89 commented 6 years ago

jacobean[CodePlex]
I made a couple other changes that should avoid this problem. I placed the extensions folder in the CommonAppData folder so that every user will have the same extensions installed. Also I built a backup system into the ExtensionManager that backs-up the dlls that come with hydrodesktop and restores them if you uninstall the updated one.

xhqiao89 commented 6 years ago

jacobean[CodePlex]
OK I just realized that HydroDesktop doesn't delete the file that stores the files to be deleted on restart when you uninstall. I changed the uninstaller so that it should delete it now.

xhqiao89 commented 6 years ago

jacobean[CodePlex]
Did you switch user accounts? I noticed that we make an extension folder for each user. With the way that we have the updating set up it updates the extension for the user and deletes the old dll which all the other users needed. We could instead place the extensions folder in the CommonAppData folder so that we don't have this problem. What do you think?

xhqiao89 commented 6 years ago

jpollak[CodePlex]
This occurred while opening HD after I did an uninstall and re-install. I then uninstalled and re-installed again with a fresh download and it opened without an issue.