I’m upgrading an application from version 9 to 10.5 and I’ve encountered quite a few issues which may be related.
My typical code for loading an image to an overlay was using GdiPlusRasterLayer and now I’ve converted that to NativeImageRasterLayer.
var layer = new NativeImageRasterLayer(fileName, worldFileName);
When I add the layer to the map and refresh, I get the following message on a pink screen.
the type initializer for ‘hyY=Ikk=’ threw and exception
Sounds like some library conflicts, but I don’t see anything odd. Since I’m using v10.5, I’m pulling everything from NuGet so I don’t expect anything out of date. Since it’s an upgrade project, is the original winformsMap component coming from my version 9 which is still installed?
FYI: Same message appears for adding Google, WMS and Open Streets layers.