Congratulations for your great job. In past days i've downloaded the source code MapSuite Explorer for Desktop Edition today i try to run it from the develop environment and throws me this error:
{"No se puede cargar el archivo o ensamblado 'NetTopologySuite, Version=1.7.3.31740, Culture=neutral, PublicKeyToken=f580a05016ebada1' ni una de sus dependencias. El sistema no puede hallar el archivo especificado.":"NetTopologySuite, Version=1.7.3.31740, Culture=neutral, PublicKeyToken=f580a05016ebada1"}
(in english it says that can't found the file or assembly) it happens for the "Mainform.Designer.cs" instruction :
this.winformsMap1 = new ThinkGeo.MapSuite.DesktopEdition.WinformsMap();
Don't know what could be wrong i set the references to the DLLs (MapSuiteCore and DesktopEdition) in the mapsuite installation and the NetTopologySuite is in the same directory and has the version indicated in the error message, also i add the reference to NetTopology but it didn't work (so i removed the reference) i read in other thread something about the MapExplorer was developed with the Services Edition is it the error's origin?
Can you give us the details of the environment you have set up on your computer? We have a virtual machine we use specifically to test non English settings. We will have one of our support guys test this out and we will let you know what we find. But before we do all that, make sure that you have the references PropertyGridEx.dll and WindowsBase.dll in your project.
Thanks for your support, yes i have the references to WindowsBase versión 3.0.6920.4016 from C:\Archivos de programa\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll, and for PropertyGridEx versión 1.0.0.0 from C:\Instaladores\LibreriasMapeo\mapSuiteProjects\MapSuiteExplorerForDesktop_100923\MapSuiteExplorerForDesktop\Dependency\PropertyGridEx.dll
and this is the environment information:
Microsoft Visual Studio 2008 Versión 9.0.30729.1 SP Microsoft .NET Framework Versión 3.5 SP1
SQL Server Analysis Services Diseñador de Microsoft SQL Server Analysis Services Versión 10.0.2531.0
SQL Server Integration Services Diseñador de MS SQL Server Integration Services Versión 10.0.2531.0 ((Katmai_PCU_Main).090329-1015 )
SQL Server Reporting Services Diseñadores de MS SQL Server Reporting Services Versión 10.0.2531.0
Sybase PowerDesigner Integration Package v15.0 Sybase, Inc. PowerDesigner 15.0.0.2613 for Visual Studio For support, please visit sybase.com\support Licence: PowerDesigner Standalone local.
Nombre del sistema operativo Microsoft Windows XP Professional Versión 5.1.2600 Service Pack 3 Compilación 2600 Fabricante del sistema operativo Microsoft Corporation Nombre del sistema WS-DESARROLLO1 Fabricante del sistema Dell Inc. Modelo del sistema OptiPlex GX520 Tipo de sistema Equipo basado en X86 Procesador x86 Family 15 Model 4 Stepping 7 GenuineIntel ~2660 MHz BIOS Versión/Fecha Dell Inc. A07, 31/03/2006 Versión de SMBIOS 2.3 Directorio de Windows C:\WINDOWS Directorio del sistema C:\WINDOWS\system32 Dispostivo de inicio \Device\HarddiskVolume1 Configuración regional España Capa de abstracción de hardware Versión = “5.1.2600.5512 (xpsp.080413-2111)” Nombre de usuario SYMDE\fernando.alvarez Zona horaria Hora est. del Pacífico de SA Memoria física total 4.096,00 MB Memoria física disponible 2,45 GB Memoria virtual total 2,00 GB Memoria virtual disponible 1,96 GB Espacio de archivo de paginación 5,33 GB Archivo de paginación C:\pagefile.sys
Hope its what you need, anything i’ve missed here just tell me, thanks for your help.
Well don’t know if this helps, but in recent days i’ve started a new project an then in the source code i paste code from other project and when i tried to test it throw me the same error. So i created another project and aggregated the form wich i’ve pasted the code from in the project that failed before, start test and…same error so i started another project, (a new one again) and i forgot add the reference to MapSuiteCore.dll when i tested it tells me there’s a missing reference, so i add the reference, test again and…same error don’t know how to verify the reference to NetTopology, in fact i don’t know what’s it used for but it seems that mapSuiteCore calls it in some way…
Wilmer, It seems that the application is unable to find the proper DLLs, “NetTopologySuite.dll” or its dependency “GeoApi.dll”. Can you have a check they exist in the reference folder, please make sure the “NetTopologySuite.dll” has Version=1.7.3.31740 and the PublicKeyToken=f580a05016ebada1”. If it still runs into error, please open the installation “How Do I” samples of DesktopEdition and check if it works. Please replace the DLLs referenced by the “Explorer ” project with the ones used by “How do i” samples if the sample works fine. Any questions please let us know. Thanks. Johnny
Hi Johnny. This’s a silly question…how do i check the publicKeyToken? The “NetTopologySuite.dll” it’s in the same folder that “MapSuiteCore.dll” and “DesktopEdition.dll” and has the version number 1.7.3.3174, but don’t know wich PublicKeyToken it has.
Thank you Johnny! I changed the reference to the DLLs used by the How Do I samples, and now it works, should i replace the DLLs in the desktop installation(under \Developer Reference) with those in samples\dependencies folder?
The Dlls provided in the Samples\Dependencies folder should be the same as the ones found under Developer Reference if you have an unmodified installation of Map Suite. So there is no reason to copy those dlls unless you simply want to. Normally you should reference your dlls from the Developer Reference folder but there is no rule preventing them from being referenced from a different location.