ArcGIS Engine Control running license
Runtime binding:
In ArcGIS engine10.0, the license method has changed, and arcgis10 has a new requirement-runtime binding. Before any ArcObjects Code (including the license initialization Code) is executed, specify the matching ArcGIS product --- ArcGIS desktop or ArcGIS Engine application.
The APIS bound to the runtime is located in the Assembly ESRI. arcGIS. version class ESRI. arcGIS. in runtimemanager, this Assembly is installed with any arcgis10 runtime in the Global Assembly Cache (GAC. ArcObjects. netsdk is installed. The default Assembly ESRI. ArcGIS. version is located in the C:/program files/ArcGIS/developerkit10.0/DOTNET folder. You can add this Assembly as a project reference in Visual Studio IDE.
Use licensecontrol to migrate the arcgis9.3 application to arcgis10:
Use licensecontrol to migrate the ArcGIS 9.3desktop or engine application to ArcGIS 10. perform the following steps:
1. Install ArcObjects. netsdk;
2. Upgrade the project of Visual Studio to Visual Studio 2008 or later;
3. Make sure that the specificversion attribute of all ESRI assembly is set to false;
4. Add the ESRI. ArcGIS. Version assembly to the project;
5. Add the ESRI. ArcGIS. ADF. Local assembly to the project;
6. before using any other ArcObjects code, add the following code statement:
In [C:
ESRI. ArcGIS. runtimemanager. Bind(ESRI. ArcGIS. productcode. Engine);
In [VB. NET:
ESRI. ArcGIS. runtimemanager. Bind(ESRI. ArcGIS. productcode. Engine);
Use the ESRI. ArcGIS. esrisystem. aoinitialize class to migrate the arcgis9.3 application to ArcGIS 10:
You can also use the ESRI. ArcGIS. esrisystem. iaoinitialize class in the code to perform runtime binding. There are two methods:
Steps for manually compiling the runtime binding code scheme:
1. Install ArcObjects. netsdk;
2. Upgrade the project of Visual Studio to Visual Studio 2008 or later;
3. Make sure that the specificversion attribute of all ESRI assembly is set to false;
4. Add the ESRI. ArcGIS. Version assembly to the project;
5. Add the ESRI. ArcGIS. ADF. Local assembly to the project;
6. before using any other ArcObjects code, add the following code statement:
In [C:
ESRI. ArcGIS. runtimemanager. Bind(ESRI. ArcGIS. productcode. Engine);
In [VB. NET:
ESRI. ArcGIS. runtimemanager. Bind(ESRI. ArcGIS. productcode. Engine);
Use arcgislicense initializer Wizard to generate the runtime binding code:
1. Install the ArcObjects. Net SDK;
2. Upgrade the project of Visual Studio to Visual Studio 2008 or later;
3. Make sure that the specificversion attribute of all ESRI assembly is set to false;
4. Add the ESRI. ArcGIS. Version assembly to the project;
5. Add the ESRI. ArcGIS. ADF. Local assembly to the project;
6. Run ArcGIS licenseinitialzer wizard by running the Add ArcGIS license checking command in Visual Studio.
Despite running ArcGIS license initialzer when developing ArcGIS 9.3 projects, you still need to run arcgislicense initializer again when migrating to ArcGIS 10, because some code generated by ArcGIS license initializer has been changed, as shown in figure
7. before using any other ArcObjects code, add the following code statement:
In [C:
ESRI. ArcGIS. runtimemanager. Bind(ESRI. ArcGIS. productcode. Engine);
In [VB. NET:
ESRI. ArcGIS. runtimemanager. Bind(ESRI. ArcGIS. productcode. Engine);
ArcGIS Engine Control running license ()