<?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: register custom class extensions on arcgis server in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26273#M962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If it won't build when you check Register for COM Interop then that is a sign that something is wrong.&amp;nbsp; You need to fix this first.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2013 10:56:57 GMT</pubDate>
    <dc:creator>RichardWatson</dc:creator>
    <dc:date>2013-02-05T10:56:57Z</dc:date>
    <item>
      <title>register custom class extensions on arcgis server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26268#M957</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;SPAN&gt;I am using ArcGIS for Server 10.1 and 9.3.1 SDE geodatabase. I have couple of custom &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class extensions registered in geodatabase. These extensions are also deployed on server machine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MXD for ArcMap with these feature classes works fine on server machine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I publish a service from my MXD then I get warning &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;???Layer is being published with custom class extension??? then I get error starting service and at last features with &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class extension are not present in my service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is. Do I have to do something else to register class extensions (.dll-s) on ArcGIS Server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 16:41:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26268#M957</guid>
      <dc:creator>RobertZargarian</dc:creator>
      <dc:date>2013-01-21T16:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: register custom class extensions on arcgis server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26269#M958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to register the class extensions with ArcGIS Server which also means that they have to be x64.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRIRegAsm produces ecfg files which should be here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files\Common Files\ArcGIS\Server10.1\Configuration\CATID&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 18:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26269#M958</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-01-21T18:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: register custom class extensions on arcgis server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26270#M959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for replying.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I registered my class extension .dll.s with ESRIRegasm and got an .xml-file with categories and clsid-s in it. This file had extension .ecfg. I renamed it to .xml and packed it with zip. Then I renamed this file to .ecfg. If I look inside the zip arcive the filename extension is .xml. Then I placed it in &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files\Common Files\ArcGIS\Server10.1\Configuration\CATID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can open and look at properties for featureclasses with classextensions In Arccatalog. But when I publish the service with a those featureclass then I get warning &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;�??Layer is being published with custom class extension�?� and when I publish get other message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;�??Service started with errors�?�, �??The base table definition string [table name] is invalid�?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can�??t build project with �??Platform target�?� x64 when there are references in class extensions to 32-bit dll-s such as &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Interfaces that class extensions have to implement (IClassExtension).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 07:33:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26270#M959</guid>
      <dc:creator>RobertZargarian</dc:creator>
      <dc:date>2013-01-28T07:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: register custom class extensions on arcgis server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26271#M960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"Layer is being published with custom class extension" is a message that you just have to ignore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"The base table definition string ..." is a message that has to be addressed.&amp;nbsp; Others have this same issue so I suggest to the search the forum for those posts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IClassExtension is in Geodatabase and that is in GAC_MSIL.&amp;nbsp; Why do you say that this is a 32 bit DLL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You absolutely have to build you class extensions such that they can run in the context of a 64 bit process.&amp;nbsp; That can be x64 or GAC_MSIL.&amp;nbsp; That cannot be x86.&amp;nbsp; You cannot reference any 32 bit only assemblies or code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 10:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26271#M960</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-01-28T10:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: register custom class extensions on arcgis server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26272#M961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for replying.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not been able to create and register custom clas extensions for x64.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In Visual Studio 2010 I put in the "platform target" x64 and "Register for COM interop" is not checked so I can compile &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but it will not register with ESRIRegasm program. I get the following error "LoadLibrary failed with Unspecified path". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if I compile with "ANY CPU" then I can register with ESRIRegasm. But I get the error when starting the service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I doing something wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 09:40:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26272#M961</guid>
      <dc:creator>RobertZargarian</dc:creator>
      <dc:date>2013-02-05T09:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: register custom class extensions on arcgis server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26273#M962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If it won't build when you check Register for COM Interop then that is a sign that something is wrong.&amp;nbsp; You need to fix this first.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 10:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26273#M962</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-02-05T10:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: register custom class extensions on arcgis server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26274#M963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am getting "File &amp;lt;path to assembly&amp;gt; is not a valid assembly" error when &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I try to compile with "Register for COM interop" option 64-bit assembly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I followed link here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/9d9563f1-a1e0-4aed-850e-f33e2f2eff1c"&gt;http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/9d9563f1-a1e0-4aed-850e-f33e2f2eff1c&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could compile with setting 64-bit regasm as post event. But this does not help. I steel cannot run ESRIRegasm &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;on this .dll.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 15:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26274#M963</guid>
      <dc:creator>RobertZargarian</dc:creator>
      <dc:date>2013-02-07T15:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: register custom class extensions on arcgis server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26275#M964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Make sure that you run the 64 bit version of ESRIRegAsm.&amp;nbsp; Search your drive for it.&amp;nbsp; It should be under C:\Program Files and not C:\Program Files (x86).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sure that you tell ESRIRegAsm that you are registering for the Server product.&amp;nbsp; This is a command line switch.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRIRegAsm will create ecfg file(s) for you and will place them in the correct directory.&amp;nbsp; You can unzip these to look at the contents but ArcGIS Server needs ecfg file(s).&amp;nbsp; Make sure that the files were created but do not modify them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this does not work then post the &amp;gt;exact&amp;lt; command line that you are using to run ESRIRegAsm.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 15:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26275#M964</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-02-07T15:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: register custom class extensions on arcgis server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26276#M965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was trying to register with ESRIRegasm from Progran(x86) because I have arcgis desktop on the same machine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried with ESRIRegasm in Program Files and it works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my .bat file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cd "C:\Program Files\Common Files\ArcGIS\bin"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRIRegasm.exe "path\filename.dll" /e /p:server /v:10.1 /w: "path"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I renamed resulting xml-file to config.xml and created zip archive with .ecfg extension and copied it to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files\ArcGIS\Server\bin\Configuration\CATID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And success!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 16:21:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26276#M965</guid>
      <dc:creator>RobertZargarian</dc:creator>
      <dc:date>2013-02-07T16:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: register custom class extensions on arcgis server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26277#M966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an x64 C++ project which has the following post build event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;PostBuildEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Command&amp;gt;"$(CommonProgramW6432)\ArcGIS\bin\esriregasm.exe" "$(TargetPath)" /p:Server /s&amp;lt;/Command&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/PostBuildEvent&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you do the above then you don't have to anything with XML.&amp;nbsp; This produces the ecfg file you need in the directory that you need it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this solved your problem can you mark my response as an answer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 16:34:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/register-custom-class-extensions-on-arcgis-server/m-p/26277#M966</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-02-07T16:34:08Z</dc:date>
    </item>
  </channel>
</rss>

