[GIS] Could not load file or assembly : ESRI.ArcGIS.ADF.Local.dll

arcgis-10.0arcgis-web-adfnetvisual studio

i worked in an application vb.net , arcengine : i copy the project source and i paste it in other Machine , Ooops i can't compile it , Error is :

Error 1 Could not load file or assembly 'file :/ / / C :/ Program Files (x86) / ArcGIS/DeveloperKit10.0/DotNet/ESRI.ArcGIS.ADF.Local.dll' or one of its dependencies. Attempt to load a program with an incorrect format. Line 142, position 5. C: \ Users \ m\ Documents \ Visual Studio 2010 \ Projects \projetc1\reco.resx 142 5 recM

any suggestion ?

Best Answer

1) Remove the reference "ESRI.ArcGIS.ADF.Local.dll" and then add reference from new machine. The error may occur due to change in path of the DLL in the new machine. 2) Check the .Net Framework in both machines, if there is a mismatch, change references accordingly. 3) If both these options do not work, then check that the DotNet SDK is installed properly in the new machine. This can be checked by creating a new project and giving reference to the "ESRI.ArcGIS.ADF.Local.dll" and check whether you are still getting same error.