I'm having trouble running one line of code to convert from MRR to ESRI ASCII GRD. Below are the details. Any thoughts?
Sample Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MapInfo.RasterEngine.Common;
using MapInfo.RasterEngine.Operations;
using MapInfo.RasterEngine.IO;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
RasterProcessing.Convert("C:\\PNR2\\dl\\5G\\DL_THPT_39.mrr", "C:\\PNR2\\dl\\5G\\hadi.asc", "MI_ESRI_ASCII_GRD");
}
}
}
Snapshot of Solution Explorer
Error:
An unhandled exception of type 'System.BadImageFormatException' occurred in mscorlib.dll
Additional information: Could not load file or assembly 'MapInfo.RasterEngine.Operations, Version=3.0.0.1290, Culture=neutral, PublicKeyToken=6e023577bd41d5d6' or one of its dependencies. An attempt was made to load a program with an incorrect format.