<?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: Stomped by issue with WPF userControl referencing WPFToolkit.dll in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/stomped-by-issue-with-wpf-usercontrol-referencing/m-p/675394#M17392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;API v1.2 uses WPF Toolkit v3.5.50211.1. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may be right that the version mismatch may cause this issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Dec 2010 16:33:21 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2010-12-01T16:33:21Z</dc:date>
    <item>
      <title>Stomped by issue with WPF userControl referencing WPFToolkit.dll</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/stomped-by-issue-with-wpf-usercontrol-referencing/m-p/675391#M17389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been banging my head on this one for a couple days and would appreciate anyone's input:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I built this UserControl for use within an existing WinForms based application. My control works fine in various environments including a prototype WinForms app that hosts the control in an ElementHost control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I need to insert this control into a WinForms application that requires strong name assemblies. Everything with my control appears to work fine until there is a need to display symbols. Using CustomMarkerSymbol or PictureMarkerSymbols will invariably throw this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]Exception has been thrown by the target of an invocation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&amp;gt; System.Windows.Markup.XamlParseException: Could not load file or assembly 'WPFToolkit' or one of its dependencies. An argument was out of its legal range. (Exception from HRESULT: 0x80131502) Line '24' Position '46'. ---&amp;gt; System.IO.FileLoadException: Could not load file or assembly 'WPFToolkit' or one of its dependencies. An argument was out of its legal range. (Exception from HRESULT: 0x80131502)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File name: 'WPFToolkit' ---&amp;gt; System.ArgumentOutOfRangeException: Length cannot be less than zero.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameter name: length&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see, the code is complaining about problems with loading the WPFToolkit.dll assembly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the ESRI ArcGIS Client Toolkit version 1.2 with the latest WPF Toolkit from Codeplex. I've tries several things including using previous version of the WPF Toolkit, signing and recompiling the WPFToolkit assembly etc...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All of my assemblies are copied to a folder where the WinForms host app is expecting controls to be dropped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again any help with this would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 04:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/stomped-by-issue-with-wpf-usercontrol-referencing/m-p/675391#M17389</guid>
      <dc:creator>PierreCusteau</dc:creator>
      <dc:date>2010-11-30T04:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Stomped by issue with WPF userControl referencing WPFToolkit.dll</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/stomped-by-issue-with-wpf-usercontrol-referencing/m-p/675392#M17390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think the first thing you need to do is fix the assembly references. Check that the file path indeed points to the proper location. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are working with API v 1.2, look to see that you've met all these installation requirements: &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/index.html"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/index.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 15:36:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/stomped-by-issue-with-wpf-usercontrol-referencing/m-p/675392#M17390</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-30T15:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stomped by issue with WPF userControl referencing WPFToolkit.dll</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/stomped-by-issue-with-wpf-usercontrol-referencing/m-p/675393#M17391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do have all the prereqs installed and as I mentionned, this control works fine when used in a WinForms test application. It just doesn't work when hosted within this particular 3rd party app that requires strong name assemblies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have my project copy all referenced assemblies locally. Here they are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Client, Version=1.2.0.177&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Client.Behaviors, Version=1.2.0.177&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Client.Bing, Version=1.2.0.177&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Client.Toolkit, Version=1.2.0.177&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Core, Version=3.5.0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Runtime.Serialization, Version=3.0.0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Xml.Linq, Version=3.5.0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WindowsBase, Version=3.0.0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PresentationCore, Version=3.0.0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PresentationFramework, Version=3.0.0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System, Version=2.0.0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Xml, Version=2.0.0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;WPFToolkit, Version=3.5.40128.1 --&amp;gt; This is actually the February release of the WPF Toolkit that I signed and recompiled in attempting to address this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, my project does not use any of the tools or behaviors from the WPF toolkit so I'd like to better understand what the dependencies are between the ESRI.ArcGIS.Client asssembly and the WPF Toolkit, maybe I'm using the wrong version of the latter? Btw, I'm also not using any of the assemblies from the ESRI.ArcGIS.Client.Toolkit either at this point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pierre&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 11:45:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/stomped-by-issue-with-wpf-usercontrol-referencing/m-p/675393#M17391</guid>
      <dc:creator>PierreCusteau</dc:creator>
      <dc:date>2010-12-01T11:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Stomped by issue with WPF userControl referencing WPFToolkit.dll</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/stomped-by-issue-with-wpf-usercontrol-referencing/m-p/675394#M17392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;API v1.2 uses WPF Toolkit v3.5.50211.1. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may be right that the version mismatch may cause this issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 16:33:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/stomped-by-issue-with-wpf-usercontrol-referencing/m-p/675394#M17392</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-12-01T16:33:21Z</dc:date>
    </item>
  </channel>
</rss>

