<?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: Unable to deploy SOI - Getting 'ClassFactory cannot supply requested class' in ArcGIS Enterprise Extensibility Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/unable-to-deploy-soi-getting-classfactory-cannot/m-p/1124732#M272</link>
    <description>&lt;P&gt;I got this issue and I'm posting here because its the first google result. There is a knowledgebase but it doesn't include the cause of my issue&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/technical-article/000014167" target="_blank"&gt;https://support.esri.com/en/technical-article/000014167&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The target version was wrong in the AssemblyInfo.cs I had it as 10.8.1, but apparently it should just be 10.8&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 02:31:30 GMT</pubDate>
    <dc:creator>David_Wilton</dc:creator>
    <dc:date>2021-12-10T02:31:30Z</dc:date>
    <item>
      <title>Unable to deploy SOI - Getting 'ClassFactory cannot supply requested class'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/unable-to-deploy-soi-getting-classfactory-cannot/m-p/818648#M109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting an error "0x80040111: ClassFactory cannot supply requested class" while attaching SOI to the MapServer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System Information:&lt;/P&gt;&lt;P&gt;1. ArcGIS Server 10.7.1 with&amp;nbsp;&lt;SPAN style="color: #595959; background-color: #ffffff; font-weight: 300;"&gt;.NET Extension Support&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. .Net Framework Version 4.7.3062.0.&lt;/P&gt;&lt;P&gt;3. Used the ArcGIS Enterprise SDK 10.7.1 to create the SOI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have tried the following:&lt;/P&gt;&lt;P&gt;1. Installed a .net version of the SOI -- same error&lt;/P&gt;&lt;P&gt;2. Installed a java version of the SOI -- same error&lt;/P&gt;&lt;P&gt;3. Installed Visual Studio...and uninstalled it and redeployed the SOI -- &lt;STRONG&gt;works fine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Few messages in the ArcGIS Server Log&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Failed to initialize server object 'Online/Online': 0x80040111: ClassFactory cannot supply requested class&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;AutomationException: ClassFactory cannot supply requested class&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Exception in preStart(); in com.esri.arcgis.discovery.admin.rediscovery.actors.GenericServerObjectActor for service:&lt;/P&gt;&lt;P&gt;Online.Online.MapServer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;com.esri.arcgis.discovery.servicelib.AGSException: AutomationException: 0x80040111 - ClassFactory cannot supply requested class at com.esri.arcgis.discovery.servicelib.impl.RemoteServiceImpl.init(RemoteServiceImpl.java:69) at com.esri.arcgis.discovery.servicelib.impl.RemoteServerContext.createService(RemoteServerContext.java:221) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) at java.rmi/sun.rmi.transport.Transport$1.run(Unknown Source) at java.rmi/sun.rmi.transport.Transport$1.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.rmi/sun.rmi.transport.Transport.serviceCall(Unknown Source) at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) at java.rmi/sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source) at java.rmi/sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) at java.rmi/sun.rmi.server.UnicastRef.invoke(Unknown Source) at java.rmi/sun.rmi.server.ActivatableRef.invoke(Unknown Source) at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source) at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source) at com.sun.proxy.$Proxy14.createService(Unknown Source) at com.esri.arcgis.discovery.admin.rediscovery.service.ArcSOCGISService.start(ArcSOCGISService.java:380) at com.esri.arcgis.discovery.admin.rediscovery.actors.GenericServerObjectActor.preStart(GenericServerObjectActor.java:95) at akka.actor.Actor$class.aroundPreStart(Actor.scala:472) at akka.actor.UntypedActor.aroundPreStart(UntypedActor.scala:97) at akka.actor.ActorCell.create(ActorCell.scala:580) at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456) at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478) at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263) at akka.dispatch.Mailbox.run(Mailbox.scala:219) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) Caused by: java.lang.Exception: AutomationException: 0x80040111 - ClassFactory cannot supply requested class at com.esri.arcgis.discovery.servicelib.impl.ServiceImpl.init(ServiceImpl.java:177) at com.esri.arcgis.discovery.servicelib.impl.RemoteServiceImpl.init(RemoteServiceImpl.java:67) at com.esri.arcgis.discovery.servicelib.impl.RemoteServerContext.createService(RemoteServerContext.java:221) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) at java.rmi/sun.rmi.transport.Transport$1.run(Unknown Source) at java.rmi/sun.rmi.transport.Transport$1.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.rmi/sun.rmi.transport.Transport.serviceCall(Unknown Source) at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: AutomationException: 0x0 - null at com.esri.arcgis.interop.NativeObjRef.nativeVtblInvokeNative(Native Method) at com.esri.arcgis.interop.NativeObjRef.nativeVtblInvoke(Unknown Source) at com.esri.arcgis.interop.NativeObjRef.invoke(Unknown Source) at com.esri.arcgis.interop.Dispatch.vtblInvoke(Unknown Source) at com.esri.arcgis.system.IObjectConstructProxy.construct(Unknown Source) at com.esri.arcgis.discovery.servicelib.impl.SOThread.run(SOThread.java:396)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 11:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/unable-to-deploy-soi-getting-classfactory-cannot/m-p/818648#M109</guid>
      <dc:creator>SandeepKuniel1</dc:creator>
      <dc:date>2019-11-21T11:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to deploy SOI - Getting 'ClassFactory cannot supply requested class'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/unable-to-deploy-soi-getting-classfactory-cannot/m-p/818649#M110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, here is what i did on the first day of 2020, created a new project.&lt;BR /&gt;Collected all the required dlls used by the SOI into a folder, executed the following power shell script&amp;lt;which basically registers the dll's to GAC&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") &lt;BR /&gt;$publish = New-Object System.EnterpriseServices.Internal.Publish &lt;BR /&gt;$files = Get-ChildItem -Path $PSScriptRoot\* -Include "*.dll"&lt;BR /&gt;foreach ($file in $files) {&lt;BR /&gt; $filePath = Join-Path -Path $PSScriptRoot -ChildPath $file.Name&lt;BR /&gt; $publish.GacInstall($filePath)&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;restarted the ArcGIS Server &amp;lt;not sure if it was required?&amp;gt; .....deployed the SOI, and magically no more errors:)&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2020 12:17:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/unable-to-deploy-soi-getting-classfactory-cannot/m-p/818649#M110</guid>
      <dc:creator>SandeepKuniel1</dc:creator>
      <dc:date>2020-01-02T12:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to deploy SOI - Getting 'ClassFactory cannot supply requested class'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/unable-to-deploy-soi-getting-classfactory-cannot/m-p/1124732#M272</link>
      <description>&lt;P&gt;I got this issue and I'm posting here because its the first google result. There is a knowledgebase but it doesn't include the cause of my issue&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/technical-article/000014167" target="_blank"&gt;https://support.esri.com/en/technical-article/000014167&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The target version was wrong in the AssemblyInfo.cs I had it as 10.8.1, but apparently it should just be 10.8&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 02:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/unable-to-deploy-soi-getting-classfactory-cannot/m-p/1124732#M272</guid>
      <dc:creator>David_Wilton</dc:creator>
      <dc:date>2021-12-10T02:31:30Z</dc:date>
    </item>
  </channel>
</rss>

