Problems with Legend

Dec 23, 2011 at 8:39 AM

Hi!

I`m using Visual Studio 2008 and MapWinGIS for creating my own GIS application. I added the Legend Control to my toolbox (referencing MapWinInterfaces.dll),

and it appears correctly in the toolbox. But after adding a legend object to my form, when I try to execute it, this error keeps going:

 

System.InvalidOperationException was unhandled
  Message="Error al crear el formulario. Consulte Exception.InnerException para obtener más detalles. Error: No se puede cargar el archivo o ensamblado 'MapWinInterfaces, Version=4.8.6.42296, Culture=neutral, PublicKeyToken=null' ni una de sus dependencias. Se ha intentado cargar un programa con un formato incorrecto."

The translation of the error is:

 

"Error when creating form. View Exception.InnerException for more details. Error: Cannot load file or assembly 'MapWinInterfaces, Version=4.8.6.42296, Culture=neutral, PublicKeyToken=null' nor one of its dependencies. Tried to load a program with incorrect format"