<?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: 10.4 upgrade error - &amp;quot;event invocation for COM objects requires event to be attributed with DispIDAttribute” in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39139#M1027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After a lot of digging and looking on the internet and determining where it was error was occuring in my application, I figured out that the Embed Interop Types on the ESRI.ARCGIS.Carto reference was set to True and needed to be set to False.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I set it to False I no longer received the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I found odd that when I set the Target Framework to .NET Framework 4.5 some of the references updated to version 10.4, while I had to go in and remove and then re-add the other references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other references, the Embed Interop Types, some are set to True, some are set to false.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Apr 2016 16:48:01 GMT</pubDate>
    <dc:creator>DaleShearer</dc:creator>
    <dc:date>2016-04-25T16:48:01Z</dc:date>
    <item>
      <title>10.4 upgrade error - "event invocation for COM objects requires event to be attributed with DispIDAttribute”</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39136#M1024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for looking at my question.&amp;nbsp; I have upgraded to 10.4, re-built my applications in VS2013.&amp;nbsp; At which time I was not getting the esriAddIns created.&amp;nbsp; With help from a prior question I did the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went to my &lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;Program Files (x86)\MSBuild\Esri and the AddIns.target file is ESRI.ArcGIS.AddIns.target.&amp;nbsp; In the VBPROJ file (from 10.3) it was ESRI.ArcGIS.AddIns.11.target. &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;I removed the .11 from the three references and made sure&lt;BR /&gt;the CSPROJ file was updating which it was.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;I also found that the AddInTargetVersion was set to&lt;BR /&gt;10.3.&amp;nbsp; I changed it to 10.4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt;"&gt;AddInTargetVersion&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9.5pt;"&gt;10.4&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt;"&gt;AddInTargetVersion&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;Once I made the changes the esriAddIn file was created for each of my applications.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;Now when I go to run the addins I get the following error messages.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt; “Application.OnStartup - event invocation for COM objects requires event to be attributed with DispIDAttribute”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;“Object or Application that generated Error:&amp;nbsp; System.Core.”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;I am working on trying to understand these messages, but if anyone can shed some light on these or point me in the right direction I would appreciate it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt;Thanks, Dale&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 14:15:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39136#M1024</guid>
      <dc:creator>DaleShearer</dc:creator>
      <dc:date>2016-04-21T14:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4 upgrade error - "event invocation for COM objects requires event to be attributed with DispIDAttribute”</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39137#M1025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now what I can determine is that I need to set the Embed Interop Types on the references to True.&amp;nbsp; I cannot find a way or where to do this VS2013.&amp;nbsp; So that is where I am currently at.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 15:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39137#M1025</guid>
      <dc:creator>DaleShearer</dc:creator>
      <dc:date>2016-04-21T15:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4 upgrade error - "event invocation for COM objects requires event to be attributed with DispIDAttribute”</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39138#M1026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I went through the Embed Interop Types on the references, some are set to true, others false, changing any of them does not help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In going through the Output file I found: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Config.esriaddinx : warning : The file content is an invalid ESRI ArcGIS Add-in configuration xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am looking at that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There has to be some documentation, something on all of this, I cannot see every user going through all this to upgrade to 10.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 16:08:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39138#M1026</guid>
      <dc:creator>DaleShearer</dc:creator>
      <dc:date>2016-04-21T16:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4 upgrade error - "event invocation for COM objects requires event to be attributed with DispIDAttribute”</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39139#M1027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After a lot of digging and looking on the internet and determining where it was error was occuring in my application, I figured out that the Embed Interop Types on the ESRI.ARCGIS.Carto reference was set to True and needed to be set to False.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I set it to False I no longer received the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I found odd that when I set the Target Framework to .NET Framework 4.5 some of the references updated to version 10.4, while I had to go in and remove and then re-add the other references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other references, the Embed Interop Types, some are set to True, some are set to false.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 16:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39139#M1027</guid>
      <dc:creator>DaleShearer</dc:creator>
      <dc:date>2016-04-25T16:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4 upgrade error - "event invocation for COM objects requires event to be attributed with DispIDAttribute”</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39140#M1028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks, Dale Shearer. This also worked for me, changing this assembly from True to False fixed the&amp;nbsp; error. Thank you, thank you, thank you. I did not have to mess with the properties of any other references.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 19:16:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39140#M1028</guid>
      <dc:creator>deleted-user-msNS7us4vPAx</dc:creator>
      <dc:date>2016-06-16T19:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4 upgrade error - "event invocation for COM objects requires event to be attributed with DispIDAttribute”</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39141#M1029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx Dale. I've started the migration from ArcGIS 10.2.1 / Visual Studio VB.NET 2010 to ArcGIS 10.4.1 and VS2013. I got the same error, but your post saved my day. I set Embed Interop Types for all the assemblies to False and the error go away &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 09:09:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39141#M1029</guid>
      <dc:creator>Per_TerjeMortensen</dc:creator>
      <dc:date>2016-07-07T09:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: 10.4 upgrade error - "event invocation for COM objects requires event to be attributed with DispIDAttribute”</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39142#M1030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Dale,&lt;/P&gt;&lt;P&gt;This has worked for me to migrate ArcObjects Desktop code migration from 10.1 to 10.5.1 with VS2015.&lt;/P&gt;&lt;P&gt;I set all Referenced assemblies property '&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Embed Interop Types&lt;/SPAN&gt;' = False on properties window ; and it removed all errors&amp;nbsp; - "Additional information: event invocation for COM objects requires event to be attributed with DispIdAttribute" &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Amita.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 11:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/10-4-upgrade-error-quot-event-invocation-for-com/m-p/39142#M1030</guid>
      <dc:creator>AmitaNarote</dc:creator>
      <dc:date>2019-10-28T11:11:20Z</dc:date>
    </item>
  </channel>
</rss>

