<?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: ProStartPageConfig crashes when loading add-ins side-by-side in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1680139#M13410</link>
    <description>&lt;P&gt;I see the problem. This add-in is including Microsoft.Xaml.Behaviors.dll in its installation folder. When the add-in loads, this causes the assembly to be loaded into the add-in's separate AssemblyLoadContext instead of using the host application's copy.&lt;/P&gt;&lt;P&gt;This creates a type identity mismatch: when the add-in's behaviors try to register with the host's behavior collections, .NET sees them as incompatible types even though they're identical. The host's collection expects behaviors from the assembly loaded in the default context, but the add-in is providing behaviors from a different assembly instance in its isolated context.&lt;/P&gt;&lt;P&gt;The solution is to remove Microsoft.Xaml.Behaviors.dll from the add-in's installation folder so it uses the host's shared copy instead. The add-in archive can be updated by adding a .zip extension and then opening it in Explorer. A bit of a pain if you rebuild it. I'll investigate what we can do going forward.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jan 2026 00:43:51 GMT</pubDate>
    <dc:creator>vanesch</dc:creator>
    <dc:date>2026-01-27T00:43:51Z</dc:date>
    <item>
      <title>ProStartPageConfig crashes when loading add-ins side-by-side</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1678602#M13387</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When running ProStartPageConfig in the&amp;nbsp;&lt;SPAN&gt;ArcGIS Pro Add-In Samples&lt;/SPAN&gt;&amp;nbsp;(&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/&lt;/A&gt;) in ArcGIS Pro 3.6 with the Add-In Manager option "Load add-ins side by side" checked it crashes with the following unhandled exception:&lt;/P&gt;&lt;P&gt;System.Windows.Markup.XamlParseException:&amp;nbsp;''Add value to collection of type 'Microsoft.Xaml.Behaviors.BehaviorCollection' threw an exception.' Line number '212' and line position '14'.'&lt;/P&gt;&lt;P&gt;Inner Exception&lt;BR /&gt;''Add value to collection of type 'Microsoft.Xaml.Behaviors.BehaviorCollection' threw an exception.' Line number '212' and line position '14'.'&lt;/P&gt;&lt;P&gt;Any idea how this can be fixed?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Markus&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 12:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1678602#M13387</guid>
      <dc:creator>mahj</dc:creator>
      <dc:date>2026-01-19T12:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: ProStartPageConfig crashes when loading add-ins side-by-side</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1678817#M13391</link>
      <description>&lt;P&gt;A quick workaround is to comment out the source of the problem: lines 211-&amp;gt;213 in ProStartPageSample.xaml in the UI folder of the solution.&lt;BR /&gt;Still looking into a fix, but this will get you running (Pro doesn't crash anymore)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 18:09:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1678817#M13391</guid>
      <dc:creator>SelimDissem</dc:creator>
      <dc:date>2026-01-20T18:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: ProStartPageConfig crashes when loading add-ins side-by-side</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1678944#M13392</link>
      <description>&lt;P&gt;Thanks for a quick response and workaround. But I guess the workaround affects some functionality? But it worries me that the underlying problem might affect other functionality in add-ins, so looking forward to a fix and a better understanding of the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 07:41:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1678944#M13392</guid>
      <dc:creator>mahj</dc:creator>
      <dc:date>2026-01-21T07:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: ProStartPageConfig crashes when loading add-ins side-by-side</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1680139#M13410</link>
      <description>&lt;P&gt;I see the problem. This add-in is including Microsoft.Xaml.Behaviors.dll in its installation folder. When the add-in loads, this causes the assembly to be loaded into the add-in's separate AssemblyLoadContext instead of using the host application's copy.&lt;/P&gt;&lt;P&gt;This creates a type identity mismatch: when the add-in's behaviors try to register with the host's behavior collections, .NET sees them as incompatible types even though they're identical. The host's collection expects behaviors from the assembly loaded in the default context, but the add-in is providing behaviors from a different assembly instance in its isolated context.&lt;/P&gt;&lt;P&gt;The solution is to remove Microsoft.Xaml.Behaviors.dll from the add-in's installation folder so it uses the host's shared copy instead. The add-in archive can be updated by adding a .zip extension and then opening it in Explorer. A bit of a pain if you rebuild it. I'll investigate what we can do going forward.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 00:43:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1680139#M13410</guid>
      <dc:creator>vanesch</dc:creator>
      <dc:date>2026-01-27T00:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: ProStartPageConfig crashes when loading add-ins side-by-side</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1680177#M13412</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/474118"&gt;@vanesch&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;that solved the problem.&lt;/P&gt;&lt;P&gt;Instead of manually removing the&amp;nbsp;&lt;SPAN&gt;Microsoft.Xaml.Behaviors.dll from the .esriAddinX, I added the following to the package reference in .csproj file, which prevents it from being included:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.135"&amp;gt;
  &amp;lt;ExcludeAssets&amp;gt;runtime&amp;lt;/ExcludeAssets&amp;gt;
&amp;lt;/PackageReference&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 11:53:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1680177#M13412</guid>
      <dc:creator>mahj</dc:creator>
      <dc:date>2026-01-27T11:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: ProStartPageConfig crashes when loading add-ins side-by-side</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1680326#M13415</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/464288"&gt;@mahj&lt;/a&gt;&amp;nbsp;thank for catching that and implementing the suggested fix!&lt;/P&gt;&lt;P&gt;Note that we updated the sample to remove the Nuget package altogether and instead have a reference to the Microsoft.Xaml.Behaviors.Wpf DLL in the Pro/bin directory. That reference has "copy local" set to "No" as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 19:41:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prostartpageconfig-crashes-when-loading-add-ins/m-p/1680326#M13415</guid>
      <dc:creator>SelimDissem</dc:creator>
      <dc:date>2026-01-27T19:41:34Z</dc:date>
    </item>
  </channel>
</rss>

