<?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: ClassFactory cannot supply requested class error with AGS Spatial Ref in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627316#M16905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever find a solution to this error?&amp;nbsp; I'm getting a similar problem, but it's throwing the error on a call to MapDocumentClass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked on StackOverflow and found something similar with this explanation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The most likely explanation is the registry entry for the object has been corrupted in some way, or the dll that exports the object is corrupted in some way. For the latter it could be missing completely, or just in a bad state for some reason&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There isn't really much of an explanation how to fix it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2012 16:06:21 GMT</pubDate>
    <dc:creator>JohnStephens</dc:creator>
    <dc:date>2012-09-17T16:06:21Z</dc:date>
    <item>
      <title>ClassFactory cannot supply requested class error with AGS Spatial Ref</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627311#M16900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everybody, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am writing a .NET WCF 3.5 REST service and I am getting a weird error when trying to create a projected coordinate system:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[System.Runtime.InteropServices.COMException] = {"ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE))"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem error exists when I call the following line: inSpatRef = inSpatRefFact.CreateProjectedCoordinateSystem(102100);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ISpatialReferenceFactory2 inSpatRefFact = sc.CreateObject("esriGeometry.SpatialReferenceEnvironment") as ISpatialReferenceFactory2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISpatialReference inSpatRef = sc.CreateObject("esriGeometry.ProjectedCoordinateSystem") as ISpatialReference;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inSpatRef = inSpatRefFact.CreateProjectedCoordinateSystem(102100);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the AGSServerConnection:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;agsconn = new ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection(System.Configuration.ConfigurationManager.AppSettings["AgsServer"], id);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;agsconn.Connect();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if (!agsconn.IsConnected)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; agsconn.Dispose();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; return "Server Connection Failed";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; ESRI.ArcGIS.Server.IServerObjectManager som = agsconn.ServerObjectManager;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; sc = som.CreateServerContext("MyFolder/MyMapService", "MapServer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 19:49:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627311#M16900</guid>
      <dc:creator>IanKramer</dc:creator>
      <dc:date>2012-06-13T19:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: ClassFactory cannot supply requested class error with AGS Spatial Ref</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627312#M16901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What coordinate system are you trying to create?&amp;nbsp; I tried finding 102100 in the developer help and it doesn't appear to be a valid constant.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 20:09:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627312#M16901</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-06-13T20:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: ClassFactory cannot supply requested class error with AGS Spatial Ref</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627313#M16902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;WGS_1984_Web_Mercator_Auxiliary_Sphere.&amp;nbsp; The one used by ArcGIS.com.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 20:12:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627313#M16902</guid>
      <dc:creator>IanKramer</dc:creator>
      <dc:date>2012-06-13T20:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: ClassFactory cannot supply requested class error with AGS Spatial Ref</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627314#M16903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using ArcGIS 9.3.1 and the only Web coordinate system I see is WGS 1984 Major Auxilliary Web Mercator, which is 102113.&amp;nbsp; If you're using ArcGIS 10, then I would verify that the constant you're using is valid by looking it up in the developer help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 20:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627314#M16903</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-06-13T20:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: ClassFactory cannot supply requested class error with AGS Spatial Ref</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627315#M16904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Btw, thanks for the response!&amp;nbsp; I did find that reference you were talking about.&amp;nbsp; I changed my number to 102113 (and some other ones in that list), but its still throwing that error.&amp;nbsp; I tried the CreateGeographicCoordinateSystem() method and its works.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IProjectedCoordinateSystem inProjCoordRef = null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISpatialReferenceFactory2 inSpatRefFact = sc.CreateObject("esriGeometry.SpatialReferenceEnvironment") as ISpatialReferenceFactory2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISpatialReference inSpatRef = null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inProjCoordRef = inSpatRefFact.CreateProjectedCoordinateSystem(102113);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inSpatRef = inCoordRef;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 20:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627315#M16904</guid>
      <dc:creator>IanKramer</dc:creator>
      <dc:date>2012-06-13T20:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: ClassFactory cannot supply requested class error with AGS Spatial Ref</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627316#M16905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever find a solution to this error?&amp;nbsp; I'm getting a similar problem, but it's throwing the error on a call to MapDocumentClass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked on StackOverflow and found something similar with this explanation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The most likely explanation is the registry entry for the object has been corrupted in some way, or the dll that exports the object is corrupted in some way. For the latter it could be missing completely, or just in a bad state for some reason&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There isn't really much of an explanation how to fix it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 16:06:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627316#M16905</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2012-09-17T16:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: ClassFactory cannot supply requested class error with AGS Spatial Ref</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627317#M16906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure if it will help anyone else who comes a long this thread, but the problem was that I was trying to my code in a stand alone code inside of Visual Studio.&amp;nbsp; I had to convert my code into a button to get around the error.&amp;nbsp; So, it's definitely an issue with the library references.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 11:50:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627317#M16906</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2012-09-18T11:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: ClassFactory cannot supply requested class error with AGS Spatial Ref</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627318#M16907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm not sure if it will help anyone else who comes a long this thread, but the problem was that I was trying to my code in a stand alone code inside of Visual Studio.&amp;nbsp; I had to convert my code into a button to get around the error.&amp;nbsp; So, it's definitely an issue with the library references.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If your application is standalone then you need to be checking out a license prior to running any code that uses ArcObjects.&amp;nbsp; If you're using ArcGIS 10 or higher you will also need to bind to a product.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 12:05:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627318#M16907</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-09-18T12:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: ClassFactory cannot supply requested class error with AGS Spatial Ref</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627319#M16908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would indeed normally fix it if you are running a standalone app. Totally forgot to initialize my license in my unit test.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 12:03:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627319#M16908</guid>
      <dc:creator>BramVan_Helleputte1</dc:creator>
      <dc:date>2016-04-15T12:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: ClassFactory cannot supply requested class error with AGS Spatial Ref</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627320#M16909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would this change all of the sudden over the course of a week? This happened to me on some commonly used mxd files from a certain time period back. The error also stated that I may have used a newer version to save. I'm running and have been running 10.5 &lt;/P&gt;&lt;P&gt;What gives?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 20:17:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627320#M16909</guid>
      <dc:creator>RockRunEnterprises</dc:creator>
      <dc:date>2017-04-03T20:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: ClassFactory cannot supply requested class error with AGS Spatial Ref</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627321#M16910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the geoprocessing tools "StageService" and "UploadServiceDefinition" and I get this error when looking at the geoprocessing results window.&amp;nbsp; A google on it seems to point to the installation of the .NET Extensions when running the ArcGIS Server Setup.&amp;nbsp; I've messed with trying to uninstall/reinstall and am still having issues.&amp;nbsp; So...obviously not related to custom code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 21:23:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classfactory-cannot-supply-requested-class-error/m-p/627321#M16910</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2017-08-16T21:23:10Z</dc:date>
    </item>
  </channel>
</rss>

