<?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 Finding a GDAL library for a custom Add-in in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/finding-a-gdal-library-for-a-custom-add-in/m-p/74010#M451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've written an Add-In that mosaics CADRG layers. It works fine in a test Console app but only because I've placed the GDAL libraries with the main program's exe. However, if I run this same code with AGX it isn't finding the GDAL libraries and errors with this message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.DllNotFoundException: Unable to load DLL 'gdal_wrap': The specified procedure could not be found. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried placing the libraries (including gdal_wrap.dll) in my Debug and Release locations and I've tried placing the libraries in the Add-in's location and in the bin directory of AGX and it errors no matter what.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where do I place this DLL? Any help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Apr 2010 15:34:55 GMT</pubDate>
    <dc:creator>RonVincent</dc:creator>
    <dc:date>2010-04-28T15:34:55Z</dc:date>
    <item>
      <title>Finding a GDAL library for a custom Add-in</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/finding-a-gdal-library-for-a-custom-add-in/m-p/74010#M451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've written an Add-In that mosaics CADRG layers. It works fine in a test Console app but only because I've placed the GDAL libraries with the main program's exe. However, if I run this same code with AGX it isn't finding the GDAL libraries and errors with this message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.DllNotFoundException: Unable to load DLL 'gdal_wrap': The specified procedure could not be found. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried placing the libraries (including gdal_wrap.dll) in my Debug and Release locations and I've tried placing the libraries in the Add-in's location and in the bin directory of AGX and it errors no matter what.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where do I place this DLL? Any help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 15:34:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/finding-a-gdal-library-for-a-custom-add-in/m-p/74010#M451</guid>
      <dc:creator>RonVincent</dc:creator>
      <dc:date>2010-04-28T15:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a GDAL library for a custom Add-in</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/finding-a-gdal-library-for-a-custom-add-in/m-p/74011#M452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently I do not understand your problem. Maybe you can provide some more informtaion on what you want to do.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 11:09:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/finding-a-gdal-library-for-a-custom-add-in/m-p/74011#M452</guid>
      <dc:creator>MarcN</dc:creator>
      <dc:date>2010-05-03T11:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a GDAL library for a custom Add-in</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/finding-a-gdal-library-for-a-custom-add-in/m-p/74012#M453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am currently dealing with the same issue. I have used the sysinternals suite to trace the issue.&amp;nbsp; While I have not specifically found the problem, I am getting closer.&amp;nbsp; I have determined that gdal IS finding the dll's that are located in the directory with it.&amp;nbsp; This has been verified using the procmon utility.&amp;nbsp; I suspect the problem is a "dll hell" issue.&amp;nbsp; Some of the dlls that come gdal requires are also used by ArcGIS explorer.&amp;nbsp; Many of these dlls are different versions than the ones gdal is using.&amp;nbsp; I suspect that this is what is really causing the issues.&amp;nbsp; These dlls are not .NET assemblies, so they are still subject to the dll hell problem.&amp;nbsp; Once the main application loads the dll, there is no way to load another dll with the same name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm still troubleshooting.&amp;nbsp; I'll keep you informed if I make any progress.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 13:29:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/finding-a-gdal-library-for-a-custom-add-in/m-p/74012#M453</guid>
      <dc:creator>AnthonyGrescavage</dc:creator>
      <dc:date>2010-05-31T13:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a GDAL library for a custom Add-in</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/finding-a-gdal-library-for-a-custom-add-in/m-p/74013#M454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It turns out it WAS a dll issue.&amp;nbsp; It doesn't matter where you put your GDAL dlls, because ArcGIS Explorer uses GDAL, so it is pre-loaded.&amp;nbsp; This is why you are seeing the issue.&amp;nbsp; It seems like it can't find the dll, but it's really a conflict where it can't load it.&amp;nbsp; The solution is to figure out which version of GDAL that the application is using, and use the same version.&amp;nbsp; Unfortunately, it is often difficult to find the .NET wrappers for varying version of GDAL.&amp;nbsp; One direction you could go is to get the source and compile it yourself.&amp;nbsp; I can tell you, this is quite the pain.&amp;nbsp; If you're interested, I can provide you with the dlls that I compiled, which match the dlls in the most recent version of ArcGIS Explorer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jun 2010 01:17:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/finding-a-gdal-library-for-a-custom-add-in/m-p/74013#M454</guid>
      <dc:creator>AnthonyGrescavage</dc:creator>
      <dc:date>2010-06-01T01:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a GDAL library for a custom Add-in</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/finding-a-gdal-library-for-a-custom-add-in/m-p/74014#M455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I posted some helpful information about this issue &lt;/SPAN&gt;&lt;A href="http://developmentfaction.blogspot.com/2010/06/using-gdal-with-arcgis-explorer.html"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 21:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/finding-a-gdal-library-for-a-custom-add-in/m-p/74014#M455</guid>
      <dc:creator>AnthonyGrescavage</dc:creator>
      <dc:date>2010-06-23T21:01:22Z</dc:date>
    </item>
  </channel>
</rss>

