License Initialisation - time

906
1
05-22-2011 11:27 PM
JanKorte
New Contributor
Hallo everybody,

I am wondering, that the Init of a license running on ArcGIS Server by code takes 20sec.+ until it's finished.
Is there a solution to speed it up or is there a faster way to initialize the license. Used ArcGIS Version is 10.

Code:

            ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Engine);
           
            AoInitialize aoi = new AoInitialize();
          
            //Additional license choices can be included here.
            esriLicenseProductCode productCode = esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB ;
           
            if (aoi.IsProductCodeAvailable(productCode) == esriLicenseStatus.esriLicenseAvailable)
            {
                aoi.Initialize(productCode);  
            }
Thank you!

Jastro
0 Kudos
1 Reply
UjjwalNigam
New Contributor III
20 seconds is a long time...it could well be a network issue.
Is your server at a distant location, then the delay is justifiable.
0 Kudos