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

相关信息
Article ID: 40750
Bug Id: N/A
Software:
ArcGIS Engine Developer Kit 10.1
ArcGIS for Server 10.1
ArcObjects SDK for the Microsoft .NET Framework 10.1
Platforms:
Windows Windows 7

问题描述
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.


原因
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.


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.
已邀请:

EsriSupport

赞同来自:

解决方案
  1. Bind the ArcGIS Engine application to an ArcGIS Server product before invoking any ArcObjects by using following 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.


其它相关参考
  1. ArcObjects SDK 10 Microsoft .NET Framework


创建及修改时间
Created: 12/18/2012

Last Modified: 1/9/2013
原文链接
http://support.esri.com/en/kno ... 40750

要回复问题请先登录注册