English

Problem: Cannot check out ArcGIS 10.1 for Server licenses from an ArcGIS Engine application using ArcObjects

Description

ArcObjects can be used to check out ArcGIS for Server licenses from an ArcGIS Engine application; however, there may be an issue that prevents ArcGIS 10.1 for Server licenses from being checked out.

Cause

This issue can be caused by one of the following:

• This problem may occur when attempting to check out an ArcGIS Server license without having first bound the ArcGIS Engine application to the Server product.

Note:
In ArcGIS 10, a stand-alone ArcGIS Engine application needs to be explicitly bound to a specific ArcGIS product to use ArcObjects. To check out an ArcGIS Server license, bind the ArcGIS Engine application to the ArcGIS for Server product; do not bind to ArcGIS for Desktop or ArcGIS Engine.

• ArcGIS 10.1 for Server only supports 64-bit processing; to check out a 10.1 license, the platform target of the ArcGIS Engine project must also be set as x64.

Solution or Workaround

  1. Bind the ArcGIS Engine application to an ArcGIS Server product before invoking any ArcObjects by using following code:

    Code:
    RuntimeManager.Bind(ProductCode.Server)

  2. Modify the project settings to target the x64 platform.
    A. Open the project in Visual Studio.
    B. Click the Build tab on the project's Properties page.
    C. Select x64 from the Platform target drop-down menu.
    [O-Image]

Related Information