2

I used standart license initialization code in C# standalone program. It was working perfectly on 10.1 and 10.2. But after migrating to 10.3 it says Licenses are not available. Meanwhile ArcMap and ArcCatalog opens with no prob. Any idea why it may be happening?

            m_AOLicenseInitializer = new LicenseInitializer();
            if (!m_AOLicenseInitializer.InitializeApplication
                (new esriLicenseProductCode[] 
                {   esriLicenseProductCode.esriLicenseProductCodeAdvanced, 
                    esriLicenseProductCode.esriLicenseProductCodeBasic, 
                    esriLicenseProductCode.esriLicenseProductCodeStandard, 
                    esriLicenseProductCode.esriLicenseProductCodeEngine,
                    esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB,
                    esriLicenseProductCode.esriLicenseProductCodeArcServer
                },new esriLicenseExtensionCode[]{}))  
            {
                MessageBox.Show(m_AOLicenseInitializer.LicenseMessage());
                returnValue = false;   
                m_AOLicenseInitializer.ShutdownApplication();
            }

it says that none of the licenses exits.

enter image description here

enter image description here

  • What is the minimum license requirements for your application? ArcMap (ArcCatalog) can be run with a basic license level. Your application may need an advanced license level? Furthermore you should share some code in your question to get better answers. – Farid Cheraghi Aug 24 '15 at 15:45
  • 1
    ArcMap and Catalog from "About" menu, says license level is Advanced. But you are right about question. Will correct now. – shika-kun Aug 24 '15 at 15:49
1

Remove all other license checks and only retain Advanced level license:

            m_AOLicenseInitializer = new LicenseInitializer();
            if (!m_AOLicenseInitializer.InitializeApplication
                (new esriLicenseProductCode[] 
                {   esriLicenseProductCode.esriLicenseProductCodeAdvanced
                }, new esriLicenseExtensionCode[] { }))
            {
                MessageBox.Show(m_AOLicenseInitializer.LicenseMessage());
                returnValue = false;
                m_AOLicenseInitializer.ShutdownApplication();
            }

As a better replacement for ArcEngine application, I highliy recommend to use License Controls (axLicenseControl)

  • same. Advanced not found. Will try axLicenseControl and write back. – shika-kun Aug 24 '15 at 16:56
  • not a solution. sorry. – shika-kun Nov 7 '15 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.