public void Initialize() { // ESRILicenseProductCode = esriLicenseProductCode.esriLicenseProductCodeArcView; ESRILicenseInitializer = new GeoprocessingInDotNet.LicenseInitializer(); ESRILicenseInitializer.InitializeApplication(ESRILicenseProductCode); if (ESRILicenseInitializer.InitializedProduct > 0) { } else { throw new Exception("ESRI License Not Initialized"); } }