Jastro

License Initialisation - time

Discussion created by Jastro on May 22, 2011
Latest reply on May 23, 2011 by ujjwalesri
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

Outcomes