Project does not compile after applying SP1/SP2 for Map 3D 2012

By Daniel Du

You may find your .net project does not compile any more after installing Service Pack 1 or Service pack 2 for Map 3D 2012, the error message is similar like below:

For SP1:
————————

Error 1 The project currently contains references to more than one version of OSGeo.MapGuide.PlatformBase, a direct reference to version 2.3.0.5080 and an indirect reference (through ‘Autodesk.Gis.Map.Platform.AcMapMap’) to version 2.3.0.5084. Change the direct reference to use version 2.3.0.5084 (or higher) of OSGeo.MapGuide.PlatformBase.

 

For SP2:
————————

Error 1 The project currently contains references to more than one version of OSGeo.MapGuide.PlatformBase, a direct reference to version 2.3.0.5080 and an indirect reference (through ‘Autodesk.Gis.Map.Platform.Interop.AcMapFeatureEntityService’) to version 2.3.0.5086. Change the direct reference to use version 2.3.0.5086 (or higher) of OSGeo.MapGuide.PlatformBase.

 

This is a known issue caused by Map 3D 2012 Service Pack, here is the workaround to solved this problem:

1. Uninstall Map 3D 2012 completely if you have already applied SP1;

2. Install Map 3D 2012 RTM version;

3. Rename following dlls in both the locations –

C:\Program Files\Autodesk\AutoCAD Map 3D 2012
C:\Program Files\Autodesk\AutoCAD Map 3D 2012\bin\GisPlatform
OSGeo.MapGuide.Foundation.dll to  OSGeo.MapGuide.Foundation_bak.dll

OSGeo.MapGuide.Geometry.dll  to OSGeo.MapGuide.Geometry_bak.dll

OSGeo.MapGuide.PlatformBase.dll to OSGeo.MapGuide.PlatformBase_bak.dll
4.      Apply Map 3D 2012 SP1

5.      Create VB.net/C# project, add reference and test. It should work fine.

 

If you are using Map 3D SP2, here is a hotfix. Hope this helps.


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading