I am attempting to open a MrSid raster and am getting an exception within the MapSuite Open Method. The exception informaiton is below.
My application targets the .NET 4.0 Framework.
The exception message states '...additional configuration information...'. What might this be referring to?
What is required to load a MrSid with the .NET 4.0 Framework?
If I target .Net 3.5, in a test application, I can open the MrSid, but I require .NET 4 as my Framework.
Your assistance is appreciated.
Dennis
[System.IO.FileLoadException] = {"Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.":null}
StackTrace:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at hxQ=.Phw=..ctor()
at ThinkGeo.MapSuite.Core.MrSidRasterSource.OpenCore()
at ThinkGeo.MapSuite.Core.RasterSource.Open()
at ThinkGeo.MapSuite.Core.RasterLayer.OpenCore()
at ThinkGeo.MapSuite.Core.Layer.Open()
at MrSidPrototype.MainWindow.WpfMap_Loaded(Object sender, RoutedEventArgs e) in C:\OriStarMappingInc\MrSidPrototype\MainWindow.xaml.cs:line 42