<?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 Re: AuthorizeASRFromFile() fails with ErrorCode -2147467259 in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407587#M15791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Before I got around to writing a little C++ app I found that double clicking the ESLF opens a wizard to add your licenses to the License manager. After doing so you don't need to call pAuth.AuthorizeASRFromFile(asrLocation, password)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop)
Dim aoInit As IAoInitialize = New AoInitializeClass
aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB)
aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeEngine)&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the trick and I don't need to find out what the heck is wrong with esri's SDK code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:32:02 GMT</pubDate>
    <dc:creator>GaryMontgomery</dc:creator>
    <dc:date>2021-12-11T18:32:02Z</dc:date>
    <item>
      <title>AuthorizeASRFromFile() fails with ErrorCode -2147467259</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407584#M15788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Background: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to authorize using an ESLF file from ESRI in code. The method calls are the same as used in 10.0 to authorize against an ASR file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;pAuth.AuthorizeASRFromFile(asrLocation, password)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get "Error HRESULT E_FAIL has been returned from a call to a COM component."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The error code is&amp;nbsp; -2147467259&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have searched ESRI and Google but have not been able to find this error code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ESLF file is in the app folder next to the former 10.0 ASR file. The password is the same as the old ASR file according to ESRI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I used Process Monitor to check if there was a security issue with the service accessing the file. The file never pops up in PM. And just to check that there was not an issue with my PM filter I clicked on the file in explorer and PM immediately registers the file access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? This should not be that difficult.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Gary&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 22:35:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407584#M15788</guid>
      <dc:creator>GaryMontgomery</dc:creator>
      <dc:date>2013-02-14T22:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: AuthorizeASRFromFile() fails with ErrorCode -2147467259</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407585#M15789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The underlying ESRI ArcObjects are written in C++ and some of them provide extended error information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing that you could try to to write the function in C++ and see if there is additional error information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#//001n000001rw000000"&gt;http://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#//001n000001rw000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Feb 2013 15:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407585#M15789</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-02-17T15:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: AuthorizeASRFromFile() fails with ErrorCode -2147467259</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407586#M15790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, Richard. I will give that a try and hopefully see something useful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 19:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407586#M15790</guid>
      <dc:creator>GaryMontgomery</dc:creator>
      <dc:date>2013-02-20T19:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: AuthorizeASRFromFile() fails with ErrorCode -2147467259</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407587#M15791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Before I got around to writing a little C++ app I found that double clicking the ESLF opens a wizard to add your licenses to the License manager. After doing so you don't need to call pAuth.AuthorizeASRFromFile(asrLocation, password)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop)
Dim aoInit As IAoInitialize = New AoInitializeClass
aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB)
aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeEngine)&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the trick and I don't need to find out what the heck is wrong with esri's SDK code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407587#M15791</guid>
      <dc:creator>GaryMontgomery</dc:creator>
      <dc:date>2021-12-11T18:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: AuthorizeASRFromFile() fails with ErrorCode -2147467259</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407588#M15792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running into the same issue with version 10.2.2. We will need the ability to authorize and deauthorize programatically. I am getting error "-98&amp;nbsp; Could not load AfCore.dll"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Naga&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 13:28:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407588#M15792</guid>
      <dc:creator>nagavijayasankaran</dc:creator>
      <dc:date>2014-06-24T13:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: AuthorizeASRFromFile() fails with ErrorCode -2147467259</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407589#M15793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/31201"&gt;naga vijayasankaran&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever get an answer for this? We are experiencing the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 15:40:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407589#M15793</guid>
      <dc:creator>MichaelThompson</dc:creator>
      <dc:date>2015-03-23T15:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: AuthorizeASRFromFile() fails with ErrorCode -2147467259</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407590#M15794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not bring this up with ESRI Support. Just double clicking the eslf file will launch the license manager and we went with this workaround for now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;naga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 15:32:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/authorizeasrfromfile-fails-with-errorcode/m-p/407590#M15794</guid>
      <dc:creator>nagavijayasankaran</dc:creator>
      <dc:date>2015-05-07T15:32:19Z</dc:date>
    </item>
  </channel>
</rss>

