<?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 ArcGIS AddIn and Custom DLL in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-addin-and-custom-dll/m-p/447932#M12161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have developed an AddIn for ArcMap with several tools, menus and dockable windows. It's coded in VB.net using Visual Studio. The AddIn references a separate VB.net project that includes lots of routines that I have written to manipulate feature classes, rasters etc. It's a general purpose GIS utility routine that references the ArcGIS 10 .Net wrapper DLLs. (It also references GDAL but I don't think this is relevant.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything works well on my development machine. The project builds and debugs just fine. When I look inside the AddIn file, I can see my reference DLL is there. But the tools fails on any deployment computer with JIT related errors that suggest that my reference DLL cannot be found. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read the ESRI documentation and it says not to use AddIns when assemblies "need to be registered". Two questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Do I need to register my referenced DLL? I ask this because I am also using this same referenced DLL in several ArcObjects extension projects. I am unsure if it needs to be referenced in this deployment scenario either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) If the answer to #1 is "yes" then I guess I need to abandon the AddIn and convert my code to registered ArcMap extension, right? If the answer to #1 is no, how should my code find or load the reference DLL at runtime? I've seen some stuff about "Assembly.Load()" but it looks complex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 05:03:36 GMT</pubDate>
    <dc:creator>PhilipBailey1</dc:creator>
    <dc:date>2012-05-30T05:03:36Z</dc:date>
    <item>
      <title>ArcGIS AddIn and Custom DLL</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-addin-and-custom-dll/m-p/447932#M12161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have developed an AddIn for ArcMap with several tools, menus and dockable windows. It's coded in VB.net using Visual Studio. The AddIn references a separate VB.net project that includes lots of routines that I have written to manipulate feature classes, rasters etc. It's a general purpose GIS utility routine that references the ArcGIS 10 .Net wrapper DLLs. (It also references GDAL but I don't think this is relevant.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything works well on my development machine. The project builds and debugs just fine. When I look inside the AddIn file, I can see my reference DLL is there. But the tools fails on any deployment computer with JIT related errors that suggest that my reference DLL cannot be found. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read the ESRI documentation and it says not to use AddIns when assemblies "need to be registered". Two questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Do I need to register my referenced DLL? I ask this because I am also using this same referenced DLL in several ArcObjects extension projects. I am unsure if it needs to be referenced in this deployment scenario either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) If the answer to #1 is "yes" then I guess I need to abandon the AddIn and convert my code to registered ArcMap extension, right? If the answer to #1 is no, how should my code find or load the reference DLL at runtime? I've seen some stuff about "Assembly.Load()" but it looks complex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 05:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-addin-and-custom-dll/m-p/447932#M12161</guid>
      <dc:creator>PhilipBailey1</dc:creator>
      <dc:date>2012-05-30T05:03:36Z</dc:date>
    </item>
  </channel>
</rss>

