Bug:  ArcGIS 10.1 SOE templates (both REST and SOAP) cannot be compiled in Visual Studio 2010

相关信息
Article ID: 40401
Bug Id: [NIM078073 SOE templates (both REST and SOAP) in Visual Studio 2010 fail to be compiled, if ArcGIS Server 10.1 is not installed.]
Software:
ArcGIS for Server 10.1
Platforms:
Windows Server 2003, Vista, Server 2008, Windows 7

BUG描述
When compiling a REST or SOAP SOE template from Visual Studio 2010 on a machine where ArcObjects SDK 10.1 is installed but ArcGIS Server is not installed, the following error is returned:

"Could not load file or assembly 'ESRI.ArcGIS.SOESupport, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. The system cannot find the file specified."

BUG原因
This issue happens because the ESRI.ArcGIS.SOESupport assembly is not registered in the Global Assembly Cache (GAC).
已邀请:

EsriSupport

赞同来自:

解决方案
This issue can be resolved by manually registering the ESRI.ArcGIS.SOESupport assembly in the GAC using the Global Assembly Cache Tool (Gacutil.exe).
Ensure the 'ESRI.ArcGIS.SOESupport.dll' file exists in the <ArcGIS DeveloperKit install location>\bin directory.

  1. Go to Start > All Programs > Microsoft Visual Studio 2010 > Visual Studio Tools.Right-click Visual Studio Command Prompt (2010) and select Run as administrator. 
  2. In the Visual Studio Command Prompt, type the following command: gacutil /i "<ArcGIS DeveloperKit install location>\bin\ESRI.ArcGIS.SOESupport.dll" 
  3. Reopen the SOE project in Visual Studio 2010.
  4. Go to Build > Clean Solution > Build Solution. The solution builds successfully.


创建及修改时间
Created: 6/27/2012

Last Modified: 7/26/2012
原文链接
http://support.esri.com/en/kno ... 40401

要回复问题请先登录注册