<?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: Beta 10: SDK Example doesn't work. in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356647#M9431</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 would like to migrate the desktop automatisation code to ArcGIS 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have exchanged the references to v.10 and added ESRI.ArcGIS.CatalogUI&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IDocument document = new MxDocumentClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Following error arises:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; Interop Type 'ESRI.ArcGIS.ArcMApUI.MxDocumentClass' cannot be embedded. Use the applicable interface instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I&amp;nbsp; create a new instance of IDocument?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Nov 2010 11:05:22 GMT</pubDate>
    <dc:creator>LukasPlatz</dc:creator>
    <dc:date>2010-11-04T11:05:22Z</dc:date>
    <item>
      <title>SDK Example doesn't work.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356644#M9428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been trying to get the Desktop Automation example to work. I'm using the C# 2008 solution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the exception information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Runtime.InteropServices.COMException was caught&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Message="Retrieving the COM class factory for component with CLSID {006B1AFE-C66C-11D0-B94C-080009EE4E51} failed due to the following error: 80040111."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Source="DesktopAutomationCS"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ErrorCode=-2147221231&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; StackTrace:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at DesktopAutomationCS.Form1.btnStartApp_Click(Object sender, EventArgs e) in C:\Program Files\ArcGIS\DeveloperKit9.4\Samples\ArcObjectsNET\DesktopAutomation\CSharp\Form1.cs:line 58&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; InnerException:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 23:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356644#M9428</guid>
      <dc:creator>GregRieck</dc:creator>
      <dc:date>2009-12-10T23:16:21Z</dc:date>
    </item>
    <item>
      <title>SDK Example doesn't work.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356645#M9429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Grieck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like that sample is not updated for 9.4.&amp;nbsp; I was able to get the sample to work by using the ESRI.ArcGIS.VersionManager.LoadVersion method and setting the product code to "Desktop". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;ESRI.ArcGIS.VersionManager.LoadVersion(ESRI.ArcGIS.ProductCode.Desktop, "9.4");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do this in the Main method at the first line.&amp;nbsp; At 9.4 you need to call LoadVersion for any standalone application before using any ArcObjects.&amp;nbsp; This is because you can install Engine and Desktop in separate folders.&amp;nbsp; Using LoadVersion essentially tells the application where to find ArcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I submitted a bug for you asking to update this sample.&amp;nbsp; NIM052231.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for finding that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 21:11:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356645#M9429</guid>
      <dc:creator>RalfGottschalk</dc:creator>
      <dc:date>2009-12-18T21:11:30Z</dc:date>
    </item>
    <item>
      <title>Fix for SDK example</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356646#M9430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ralf,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the tip that worked great! And thanks for reporting it as a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;G&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 22:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356646#M9430</guid>
      <dc:creator>GregRieck</dc:creator>
      <dc:date>2009-12-18T22:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Beta 10: SDK Example doesn't work.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356647#M9431</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 would like to migrate the desktop automatisation code to ArcGIS 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have exchanged the references to v.10 and added ESRI.ArcGIS.CatalogUI&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IDocument document = new MxDocumentClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Following error arises:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; Interop Type 'ESRI.ArcGIS.ArcMApUI.MxDocumentClass' cannot be embedded. Use the applicable interface instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I&amp;nbsp; create a new instance of IDocument?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 11:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356647#M9431</guid>
      <dc:creator>LukasPlatz</dc:creator>
      <dc:date>2010-11-04T11:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Beta 10: SDK Example doesn't work.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356648#M9432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I too am getting all sorts of errors with the arcgis 10 examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The type 'ESRI.ArcGIS.Geodatabase.FieldClass' has no constructors defined &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'ESRI.ArcGIS.Geodatabase.FeatureClassDescriptionClass' cannot be embedded. Use the applicable interface instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 13:13:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356648#M9432</guid>
      <dc:creator>MichaelBlom</dc:creator>
      <dc:date>2011-03-11T13:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Beta 10: SDK Example doesn't work.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356649#M9433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Change your .NET framework settings in Visual studio. ArcGIS 10 works with .NET 3.5&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 04:11:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356649#M9433</guid>
      <dc:creator>LakshmananVenkatesan</dc:creator>
      <dc:date>2011-12-05T04:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Beta 10: SDK Example doesn't work.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356650#M9434</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 have this problem : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Impossible d'effectuer un cast d'un objet COM de type 'ESRI.ArcGIS.ArcMapUI.MxDocumentClass' 
en type d'interface 'ESRI.ArcGIS.Framework.IDocument'. 
Cette opération a échoué, car l'appel QueryInterface sur le composant COM pour l'interface avec 
l'IID '{3E927177-307A-11D2-94C9-080009EEBECB}' a échoué en raison de l'erreur suivante : Le serveur RPC n'est pas disponible. (Exception de HRESULT : 0x800706BA).&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In VS 2010.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my code : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; Dim objMxDoc As MxDocument
&amp;nbsp; ...
objMxDoc = New MxDocument&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Somebody can help me?&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;--&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Nesta&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:40:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356650#M9434</guid>
      <dc:creator>kameninestor</dc:creator>
      <dc:date>2021-12-11T16:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Beta 10: SDK Example doesn't work.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356651#M9435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pour info, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;J'avais en effet trouvé une solution à mon problème en utilisasnt les régistres.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nestasoft&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Développeur .NET - Géomatique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 15:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356651#M9435</guid>
      <dc:creator>kameninestor</dc:creator>
      <dc:date>2012-04-19T15:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: SDK Example doesn't work.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356652#M9436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bonjour &lt;/P&gt;&lt;P&gt;j'ai le meme problme&amp;nbsp; je voudrais sevoir comment avez vous le resoudre &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bien cordielemnt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 13:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/sdk-example-doesn-t-work/m-p/356652#M9436</guid>
      <dc:creator>abdallahilemrabott</dc:creator>
      <dc:date>2016-06-29T13:55:17Z</dc:date>
    </item>
  </channel>
</rss>

