admin管理员组文章数量:1644438
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 |
Description
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."
Cause
This issue happens because the ESRI.ArcGIS.SOESupport assembly is not registered in the Global Assembly Cache (GAC).Workaround
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.
-show me-
- Go to Start > All Programs > Microsoft Visual Studio 2010 > Visual Studio Tools.
- Right-click Visual Studio Command Prompt (2010) and select Run as administrator.
-show me-
- In the Visual Studio Command Prompt, type the following command:
gacutil /i "<ArcGIS DeveloperKit install location>\bin\ESRI.ArcGIS.SOESupport.dll"
-show me-
- Reopen the SOE project in Visual Studio 2010.
- Go to Build > Clean Solution > Build Solution. The solution builds successfully.
本文标签: ESRIArcGISSOESupportloadfile
版权声明:本文标题:Could not load file or assembly 'ESRI.ArcGIS.SOESupport, Version=10.1.0.0, Culture=neutral, PublicKe 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1729378208a1199082.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论