<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcEngine 10 - Cannot get license in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-10-cannot-get-license/m-p/367386#M9668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My environment&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt; &lt;BR /&gt; &lt;LI&gt;Visual studio 2008&lt;/LI&gt; &lt;BR /&gt; &lt;LI&gt;ArcEngine 10&lt;/LI&gt; &lt;BR /&gt; &lt;LI&gt;VB.NET&lt;/LI&gt; &lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;I choose to start a new project using an ArcGIS TEmplate, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;specifically, the "MapControl Application" Template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't change a single line of code, I simply ran it, and it bombed with &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"You must have a license to use this ActiveX control"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep in mind, their own template has code in the ApplicationEvents.vb file which checks out an Engine license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have BOTH an engine license and desktop license on this computer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at ESRI's own advice here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000002ns000000" rel="nofollow"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000002ns000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...which says to put the license checkout code in the form's Sub New() just before the call to InitializeComponent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I did that, ran it, and it bombed again with same message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;&lt;STRONG&gt;I attached the project so you could see for yourself.&lt;BR /&gt;I also attached a pic of the relevant code. &lt;BR /&gt;Notice in the immediate window that i have licenses.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know how to get this to work programmatically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do NOT want to use a license control because of the nature of our application. People need to be able to start the application and use parts of it other than the map without checking out a map license, and the only way to do that is programmatically check out the license just before it's needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 21:38:14 GMT</pubDate>
    <dc:creator>ESRICustomer</dc:creator>
    <dc:date>2011-10-12T21:38:14Z</dc:date>
    <item>
      <title>ArcEngine 10 - Cannot get license</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-10-cannot-get-license/m-p/367386#M9668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My environment&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt; &lt;BR /&gt; &lt;LI&gt;Visual studio 2008&lt;/LI&gt; &lt;BR /&gt; &lt;LI&gt;ArcEngine 10&lt;/LI&gt; &lt;BR /&gt; &lt;LI&gt;VB.NET&lt;/LI&gt; &lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;I choose to start a new project using an ArcGIS TEmplate, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;specifically, the "MapControl Application" Template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't change a single line of code, I simply ran it, and it bombed with &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"You must have a license to use this ActiveX control"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep in mind, their own template has code in the ApplicationEvents.vb file which checks out an Engine license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have BOTH an engine license and desktop license on this computer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at ESRI's own advice here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000002ns000000" rel="nofollow"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000002ns000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...which says to put the license checkout code in the form's Sub New() just before the call to InitializeComponent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I did that, ran it, and it bombed again with same message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;&lt;STRONG&gt;I attached the project so you could see for yourself.&lt;BR /&gt;I also attached a pic of the relevant code. &lt;BR /&gt;Notice in the immediate window that i have licenses.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know how to get this to work programmatically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do NOT want to use a license control because of the nature of our application. People need to be able to start the application and use parts of it other than the map without checking out a map license, and the only way to do that is programmatically check out the license just before it's needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 21:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-10-cannot-get-license/m-p/367386#M9668</guid>
      <dc:creator>ESRICustomer</dc:creator>
      <dc:date>2011-10-12T21:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEngine 10 - Cannot get license</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-10-cannot-get-license/m-p/367387#M9669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: CCPoston&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a "Windows Application (Engine)" and I think you'll see that the binding must be a target of the ResolveBindingEvent. You can't just do it and be done.&amp;nbsp; You must set up the mechanism so it can be checked when necessary.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 14:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-10-cannot-get-license/m-p/367387#M9669</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-10-13T14:12:39Z</dc:date>
    </item>
  </channel>
</rss>

