ArcGIS Engine Control running license

Source: Internet
Author: User
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 ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.