<?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 Why does the SpatialReferenceDialogClass work only with a Desktop license? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/why-does-the-spatialreferencedialogclass-work-only/m-p/689461#M18523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lost a full day sorting this out. &amp;nbsp;Turns out that&amp;nbsp;ESRI.ArcGIS.CatalogUI.SpatialReferenceDialogClass() will only work if you are binding to a Desktop license. &amp;nbsp;Previously I was binding with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that resulted in an error when instantiating the class and I would get the error displayed below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I bind only to Desktop then the class works and the dialog opens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand ESRI's logic in this but there it is. Seems at least I should have been able to use the 'EngineOrDesktop' binding. &amp;nbsp;That must be a bug or I don't really understand that classification. &amp;nbsp;And why include this class in ArcGIS Engine if you are not able to use it with an Engine only application? &amp;nbsp; And a more understandable error message would be nice. &amp;nbsp;I spent a bunch of time trying to determine if the CLSID was or was not registered. &amp;nbsp;Go figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/319316_COM Error.png" style="width: 620px; height: 138px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2017 21:29:17 GMT</pubDate>
    <dc:creator>DennisGeasan</dc:creator>
    <dc:date>2017-02-10T21:29:17Z</dc:date>
    <item>
      <title>Why does the SpatialReferenceDialogClass work only with a Desktop license?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/why-does-the-spatialreferencedialogclass-work-only/m-p/689461#M18523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lost a full day sorting this out. &amp;nbsp;Turns out that&amp;nbsp;ESRI.ArcGIS.CatalogUI.SpatialReferenceDialogClass() will only work if you are binding to a Desktop license. &amp;nbsp;Previously I was binding with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that resulted in an error when instantiating the class and I would get the error displayed below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I bind only to Desktop then the class works and the dialog opens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand ESRI's logic in this but there it is. Seems at least I should have been able to use the 'EngineOrDesktop' binding. &amp;nbsp;That must be a bug or I don't really understand that classification. &amp;nbsp;And why include this class in ArcGIS Engine if you are not able to use it with an Engine only application? &amp;nbsp; And a more understandable error message would be nice. &amp;nbsp;I spent a bunch of time trying to determine if the CLSID was or was not registered. &amp;nbsp;Go figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/319316_COM Error.png" style="width: 620px; height: 138px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 21:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/why-does-the-spatialreferencedialogclass-work-only/m-p/689461#M18523</guid>
      <dc:creator>DennisGeasan</dc:creator>
      <dc:date>2017-02-10T21:29:17Z</dc:date>
    </item>
  </channel>
</rss>

