BindLicense issue

2573
3
Jump to solution
10-19-2012 01:02 PM
MichaelRobb
Occasional Contributor III
Venturing into ArcServer from desktop/engine.

I never have an issue w/ binding to Engine or Desktop and AoInitialize.
All dlls being used are available in Server Core.

simple line of code, even with ArcServer installed and Authorized...
Now I see the productCode no problem...



  Dim Info As IEnumerable(Of ESRI.ArcGIS.RuntimeInfo) = ESRI.ArcGIS.RuntimeManager.InstalledRuntimes ' check installed runtimes  for each item in Info  pProductCode = ESRI.ArcGIS.ProductCode.Server 'do it all at once... ESRI.ArcGIS.RuntimeManager.BindLicense(pProductCode, ESRI.ArcGIS.LicenseLevel.Standard)  *'aoLicenseIntializer = New ESRI.ArcGIS.esriSystem.AoInitialize() ' Must be the first object created Next


at BindLicense line...

Unable to initialize an ArcGIS 10.1 license. Could not find any of the following product license(s): ArcServer

suggestions?
0 Kudos
1 Solution

Accepted Solutions
RichardWatson
Frequent Contributor
Try x64?

Server 10.1 is 64 bit.

View solution in original post

0 Kudos
3 Replies
MichaelRobb
Occasional Contributor III
Update:
The ArcGIS.Version Namespace is not visible to add as a reference in Visual studio on the server, yet, it exists in the Windows/assembly directory.

I have made sure that the x86 CPU is targeted, using 3.5 Client Framework.

As mentioned, zero issues with Engine or any desktop level, but trying to AoInitialize ArcServer license product code...
0 Kudos
RichardWatson
Frequent Contributor
Try x64?

Server 10.1 is 64 bit.
0 Kudos
MichaelRobb
Occasional Contributor III
Solution Platform to Any CPU (x64) works.
Lesson learned on my part.  Thanks

So used to all desktop at x86.
0 Kudos