CUAHSI / CUAHSI/HydroDesktop

Unhandled Exception

Open
#85 0 comments 0 reactions 0 assignees View on GitHub
CodePlex
Dominant language
C#
Stars
76
Forks
21
PR merge metrics
No merged PRs in 30d

Description

twhitvine[CodePlex]
Version: 1.5.12.9
Description: In Extension Manager, in Installed Extensions tab, clicked Data Providers. Exception thrown immediately.
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 'gdal_csharp, Version=1.0.4398.13657, Culture=neutral, PublicKeyToken=db5a52b08dc5b321' or one of its dependencies. The system cannot find the file specified.

Resulting in: The type initializer for 'DotSpatial.Data.Rasters.GdalExtension.GdalHelper' threw an exception.

Resulting in: An exception occurred while trying to create an instance of type 'DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider'.

Resulting in: Cannot activate part 'DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider'.

Element: DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider --gt DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider --gt DirectoryCatalog (Path=quotC:\Users\whiteatl\AppData\Roaming\HydroDesktop_1_5_12.exe\Extensions\Packages\DotSpatial.Data.Rasters.GdalExtension.1.0.1185\lib\net40-Clientquot)

Resulting in: Cannot get export 'DotSpatial.Data.IDataProvider (ContractName=quotDotSpatial.Data.IDataProviderquot)' from part 'DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider'.

Element: DotSpatial.Data.IDataProvider (ContractName=quotDotSpatial.Data.IDataProviderquot) --gt DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider --gt DirectoryCatalog (Path=quotC:\Users\whiteatl\AppData\Roaming\HydroDesktop_1_5_12.exe\Extensions\Packages\DotSpatial.Data.Rasters.GdalExtension.1.0.1185\lib\net40-Clientquot)

at System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition)

at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore()

at System.ComponentModel.Composition.ExportServices.GetExportedValueFromLazy[T](Export export)

at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValuesCore[T](String contractName)

at DotSpatial.Plugins.ExtensionManager.DataProviderCategory.ltGetItemsgtd__0.MoveNext()

at DotSpatial.Plugins.ExtensionManager.ExtensionManagerForm.ShowInstalledItemsBasedOnSelectedCategory()

at DotSpatial.Plugins.ExtensionManager.ExtensionManagerForm.uxCategoryList_SelectedIndexChanged(Object sender, EventArgs e)

at System.Windows.Forms.ListBox.WmReflectCommand(Messageamp m)
at System.Windows.Forms.ListBox.WndProc(Messageamp m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with DotSpatial.Plugins.ExtensionManager.ExtensionManagerForm.ShowInstalledItemsBasedOnSelectedCategory and the DataProviderCategory path in the stack trace, then inspect DotSpatial.Data.Rasters.GdalExtension.GdalHelper and GdalRasterProvider. Reproduce the failure by selecting Data Providers in the Installed Extensions tab and trace the missing gdal_csharp dependency. Done means the category opens without an unhandled composition exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.