Blog

Error: arcgis product not specified. you must first bind to an arcgis version prior

Posted by Yogesh Sharma Blogs | ArcObject Oct 22, 2012
This blog shows how to resolve error "arcgis product not specified. you must first bind to an arcgis version prior".
Solution- 

When we migrate our code from ArcGis 9.3 to ArcGis 10 then this type of error occurs. 
  1. First we add Reference ESRI.ArcGis.ADF.Local
  2. Add Reference ESRI.ArcGis.Version
  3. Add Line  

    ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop); 

    prior to call any arcgis object. 

  4. In all ArcGis Reference property "Specific Version" set to false.
  5. Now Go to Project menu of visual studio and there are one option "Add ArcGis License Checking" and Add this file to your project. 
Now your error has been removed.
COMMENT USING
PREMIUM SPONSORS
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
Employers - Post Free Jobs
SPONSORED BY
  • MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.