Open xhqiao89 opened 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.
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...
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.
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.
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?
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.
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)