<?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 Interactive Silverlight SDK 2.0 - KeyNotFoundException error in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/interactive-silverlight-sdk-2-0/m-p/201256#M4981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have downloaded and installed the 2.0 SDK. When I run the application in VS2010 I get an error in the App.xaml.cs file when trying to read the xml key:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private void Application_Startup(object sender, StartupEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; string xmlConfig = e.InitParams["xml"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; //this.RootVisual = new Page(xmlConfig);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; this.RootVisual = new LightPage(xmlConfig);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; System.Windows.Browser.HtmlPage.RegisterScriptableObject("mySLapp", this.RootVisual);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error occurs when trying to read xml key at "e.InitParams["xml"];"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The key is defined with the Default.htm as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;div id="silverlightControlHost"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;object data="data:application/x-silverlight-2," type="application/x-silverlight-2"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; width="100%" height="99%"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="source" value="ArcGISSilverlightSDK.xap" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="onerror" value="onSilverlightError" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="background" value="white" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="initParams" value="xml=Assets/SDKConfig.xml" /&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="onLoad" value="pluginLoaded" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="minRuntimeVersion" value="4.0.50401.0" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="autoUpgrade" value="true" /&amp;gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not changed anything within the code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I publish the website as is the code works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Aug 2010 18:00:16 GMT</pubDate>
    <dc:creator>AngelGonzalez</dc:creator>
    <dc:date>2010-08-27T18:00:16Z</dc:date>
    <item>
      <title>Interactive Silverlight SDK 2.0 - KeyNotFoundException error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/interactive-silverlight-sdk-2-0/m-p/201256#M4981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have downloaded and installed the 2.0 SDK. When I run the application in VS2010 I get an error in the App.xaml.cs file when trying to read the xml key:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private void Application_Startup(object sender, StartupEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; string xmlConfig = e.InitParams["xml"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; //this.RootVisual = new Page(xmlConfig);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; this.RootVisual = new LightPage(xmlConfig);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; System.Windows.Browser.HtmlPage.RegisterScriptableObject("mySLapp", this.RootVisual);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error occurs when trying to read xml key at "e.InitParams["xml"];"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The key is defined with the Default.htm as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;div id="silverlightControlHost"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;object data="data:application/x-silverlight-2," type="application/x-silverlight-2"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; width="100%" height="99%"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="source" value="ArcGISSilverlightSDK.xap" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="onerror" value="onSilverlightError" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="background" value="white" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="initParams" value="xml=Assets/SDKConfig.xml" /&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="onLoad" value="pluginLoaded" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="minRuntimeVersion" value="4.0.50401.0" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;param name="autoUpgrade" value="true" /&amp;gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not changed anything within the code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I publish the website as is the code works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 18:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/interactive-silverlight-sdk-2-0/m-p/201256#M4981</guid>
      <dc:creator>AngelGonzalez</dc:creator>
      <dc:date>2010-08-27T18:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Silverlight SDK 2.0 - KeyNotFoundException error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/interactive-silverlight-sdk-2-0/m-p/201257#M4982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you set the website to be the startup project? (as opposed to the Silverlight project)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is your app loading Default.htm ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 19:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/interactive-silverlight-sdk-2-0/m-p/201257#M4982</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-08-27T19:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Silverlight SDK 2.0 - KeyNotFoundException error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/interactive-silverlight-sdk-2-0/m-p/201258#M4983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Setting the website to be the startup project worked!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 20:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/interactive-silverlight-sdk-2-0/m-p/201258#M4983</guid>
      <dc:creator>AngelGonzalez</dc:creator>
      <dc:date>2010-08-27T20:05:16Z</dc:date>
    </item>
  </channel>
</rss>

