The application is not licensed Error !!!

3198
2
07-26-2011 02:25 AM
MohammedBuali
New Contributor
I have a problem when i try to create feature dataset using vb.net with arcGIS 10 SP2. i get this error:

"The application is not licensed to create or modify schema for this type of data"

any idea, how to resolve this?
Reply
0 Kudos
2 Replies
SebastianKrings
Occasional Contributor
Hi

do you programm an Add-In or a Stand-Alone application?
I had some problems in the past with the license initializing.
May this helps:
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000001q0000000

In my case the license initializer helped me:
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//004800000191000000

I think the background was, that altough I implemented the application as Add-In instead of an external .exe, it was not able to read ArcMaps license so I had to bind it explicit.


An other thought was that you may not have activated an extension which you are using. I know you're talking about licensing and it's only to create a feature class, but 'was only a thought.

I wonder that you get an exception saying to that there's a licens problem.
I remember that in my case I always get the exception that my features are not z-aware. But the problem was the license... huuu?!

Good Luck
Reply
0 Kudos
MohammedBuali
New Contributor
thank you,

i used this code & it fixed it:

   'Add runtime management
        ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop)

        'Initialize the application.
        Dim licenseStatus As esriLicenseStatus = esriLicenseStatus.esriLicenseUnavailable
        Dim m_AoInitialize As IAoInitialize = New AoInitializeClass()
        licenseStatus = m_AoInitialize.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcInfo)
        licenseStatus = m_AoInitialize.CheckOutExtension(esriLicenseExtensionCode.esriLicenseExtensionCodeSpatialAnalyst)
Reply
0 Kudos