<?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 new AddLayersOperationClass error in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/new-addlayersoperationclass-error/m-p/184732#M4812</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;BR /&gt;&lt;SPAN&gt;I try to add a IBaseMapLayer using the sample from the documentation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IRasterBasemapLayerFactory rasterBMLFactory = new RasterBasemapLayerFactoryClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IRasterBasemapLayer rasterBML = rasterBMLFactory.Create(rasterLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ILayer layer = (ILayer)rasterBML;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.Name = layer.Name + " Accelerated";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IAddLayersOperation addLayersOp = new AddLayersOperationClass();addLayersOp.SetDestinationInfo(0, map, null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addLayersOp.AddLayer(layer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addLayersOp.Name = "Add Accelerated Raster Layer";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IOperation op = addLayersOp as IOperation;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;op.Do(); // Add the layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I got an error on creating AddLayersOperationClass: "ClassFactory cannot supply requested class ".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also try to add the LoadVersion with Desktop and engine before, but I still got the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an issue with the class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have ArcGIS Dektop / Engine / SDK .NET on my computer.&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;Dominique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Feb 2010 13:19:48 GMT</pubDate>
    <dc:creator>MartinRivest</dc:creator>
    <dc:date>2010-02-24T13:19:48Z</dc:date>
    <item>
      <title>new AddLayersOperationClass error</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/new-addlayersoperationclass-error/m-p/184732#M4812</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;BR /&gt;&lt;SPAN&gt;I try to add a IBaseMapLayer using the sample from the documentation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IRasterBasemapLayerFactory rasterBMLFactory = new RasterBasemapLayerFactoryClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IRasterBasemapLayer rasterBML = rasterBMLFactory.Create(rasterLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ILayer layer = (ILayer)rasterBML;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.Name = layer.Name + " Accelerated";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IAddLayersOperation addLayersOp = new AddLayersOperationClass();addLayersOp.SetDestinationInfo(0, map, null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addLayersOp.AddLayer(layer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addLayersOp.Name = "Add Accelerated Raster Layer";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IOperation op = addLayersOp as IOperation;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;op.Do(); // Add the layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I got an error on creating AddLayersOperationClass: "ClassFactory cannot supply requested class ".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also try to add the LoadVersion with Desktop and engine before, but I still got the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an issue with the class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have ArcGIS Dektop / Engine / SDK .NET on my computer.&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;Dominique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 13:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/new-addlayersoperationclass-error/m-p/184732#M4812</guid>
      <dc:creator>MartinRivest</dc:creator>
      <dc:date>2010-02-24T13:19:48Z</dc:date>
    </item>
    <item>
      <title>cannot reproduce this problem</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/new-addlayersoperationclass-error/m-p/184733#M4813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dominique,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you still experiencing this issue?&amp;nbsp; I was unable to reproduce this issue on current builds of ArcGIS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 20:19:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/new-addlayersoperationclass-error/m-p/184733#M4813</guid>
      <dc:creator>JeremyWright</dc:creator>
      <dc:date>2010-03-15T20:19:33Z</dc:date>
    </item>
  </channel>
</rss>

