Select to view content in your preferred language

esriLicenseProductCodeArcServer cannot be licensed in web service

3764
10
Jump to solution
11-24-2012 07:40 PM
XintaoLiu
Occasional Contributor II
I created a web service that makes connecting to the geodatabase.

When I debug the code of the web service (C# VS2010), the binding is false and the licenseStatus is "esriLicenseNotLicensed". I believe that the settings are correct (please see attached picture). The operating system is Windows 7 in 64-bit, and my ArcGIS version is 10.1. Thanks.

bool bBinding = ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Server);
IAoInitialize m_AOInit = new AoInitializeClass();
esriLicenseStatus licenseStatus = m_AOInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcServer);

[ATTACH=CONFIG]19504[/ATTACH]
Tags (2)
0 Kudos
10 Replies
RichardWatson
Frequent Contributor
You don't have to use that dialog to add an assembly reference.  Just browse and find it on the file system.

On my machine the assemblies are here:

C:\Program Files (x86)\ArcGIS\DeveloperKit10.1\DotNet
0 Kudos