I renamed the application configuration file this morning and for some reason, I can no longer instantiate a RasterFactory. The error message is:
Internal error occurred within the program:
The type initializer for 'Landis.RasterIO.Gdal.RasterFactory' threw an exception.
The type initializer for 'Landis.RasterIO.Gdal.GdalSystem' threw an exception.
at Widgets.Launcher.BtnRun_Click(Object sender, EventArgs e) in C:\Docs\Lesley\Landis\code\branches\lbross\Widgets\Launcher.cs:line 71
I have confirmed with the Fusion Log Viewer that the gdal_csharp.dll is loading correctly. Because the RasterFactory is inside one of the Spatial Modeling .dll's I can't tell what is causing the failure. There are errors on the Fusion Log Viewer about not being able to load the System.Xml assembly which makes no sense because this is a core Windows assembly. I don't know if this is related to the RasterFactory error or not.
The assembly binding entry in my config file:
<!--<probing privatePath="6.0;build;extensions" /> -->
<probing privatePath="build" />
<bindingRedirect oldVersion="220.127.116.11-1.0.65534.65534" newVersion="1.0.4704.32492" />
I have applied to join the LANDIS-II developers discussion board and will post my question there when I am approved.