<?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 Solution Found in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372080#M9616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are the man Morten.&amp;nbsp; Your first guess was the problem.&amp;nbsp; Sure enough there was no .xap file in the Client Folder.&amp;nbsp; So I copied it over into there from the bin folder.&amp;nbsp; Now it works.&amp;nbsp; Any idea on why the .xap file is not getting moved or created in the Client Folder?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help!.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My guess is the .xap file is not in the website folder that the object tag in the html test page is referring to, or the webserver is not returning the correct mime type for .xap files.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Apr 2010 18:40:31 GMT</pubDate>
    <dc:creator>EricDaniel</dc:creator>
    <dc:date>2010-04-14T18:40:31Z</dc:date>
    <item>
      <title>First Silverlight Application Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372075#M9611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm just trying to run about as simple of an application as possible and I'm getting the following error in IE8 when I go to run:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Line: 56&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Unhandled Error in Silverlight Application &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Code: 2104&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Category: InitializeError&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Message: Could not download the Silverlight application. Check web server settings&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am able to run non-ArcGIS API apps just fine without error.&amp;nbsp; I pasted in my code below.&amp;nbsp; I have the ESRI.ArcGIS.Client reference added to my project.&amp;nbsp; Any ideas what may be causing my problem here?&amp;nbsp; Let me know if you need more information.&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;UserControl x:Class="SilverlightApplication1.Page"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/winfx/2006/xaml/presentation" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/winfx/2006/xaml/presentation&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:x="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/winfx/2006/xaml" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/winfx/2006/xaml&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Grid x:Name="LayoutRoot" Background="White"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map x:Name="MyMap" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" rel="nofollow" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Grid&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/UserControl&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 23:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372075#M9611</guid>
      <dc:creator>EricDaniel</dc:creator>
      <dc:date>2010-04-13T23:43:40Z</dc:date>
    </item>
    <item>
      <title>First Silverlight Application Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372076#M9612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you trying to run the project in design time or runtime? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are running in design time, try putting some break points in the code in both App.xaml.cs (or vb) and [mainpage].xaml.cs (or vb). You may get to see the error. If everything works in design time, then you need to get a web debugger (aka sniffer) like Fiddler. It will tell you what is going on between your Silverlight app and the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect it has to do with some web server settings. Did you add the MIME types to the web site?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 01:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372076#M9612</guid>
      <dc:creator>HubertLo</dc:creator>
      <dc:date>2010-04-14T01:43:15Z</dc:date>
    </item>
    <item>
      <title>First Silverlight Application Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372077#M9613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; I'm running in design time.&amp;nbsp; I have it running on a Windows XP machine, so IIS 5.&amp;nbsp; I did add the MIME types.&amp;nbsp; If I can run other non-ESRI API apps fine, wouldn't that mean there isn't a problem with web sever settings?&amp;nbsp; I tried adding breakpoints but it really doesn't find anything.&amp;nbsp; I"m really at a lost.&amp;nbsp; It's a very basic example.&amp;nbsp; Its the example from the ESRI resources site on getting started and writing your Silverlight app.&amp;nbsp; Would it help to send the code from the .cs files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you trying to run the project in design time or runtime? &lt;BR /&gt;&lt;BR /&gt;If you are running in design time, try putting some break points in the code in both App.xaml.cs (or vb) and [mainpage].xaml.cs (or vb). You may get to see the error. If everything works in design time, then you need to get a web debugger (aka sniffer) like Fiddler. It will tell you what is going on between your Silverlight app and the server.&lt;BR /&gt;&lt;BR /&gt;I suspect it has to do with some web server settings. Did you add the MIME types to the web site?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 03:19:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372077#M9613</guid>
      <dc:creator>EricDaniel</dc:creator>
      <dc:date>2010-04-14T03:19:16Z</dc:date>
    </item>
    <item>
      <title>First Silverlight Application Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372078#M9614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since I cannot see your project, there are few things I like to know:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Did you try to run other Silverlight 3.0 applications?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Who (or what) created the virtual directory? Is the IIS settings correct? What about ASP.NET version&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Did you rename certain Silverlight xaml pages? I believe App.xaml must stay in this name. You can change the other xaml but you need to rename them in App.xaml.cs as well. &lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;When that exception occured, did it break into anything in the IDE? It doesn't have to be your code, it could be the compiled files.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you try to put breakpoints in these App.xaml.cs functions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public App()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private void Application_Startup&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These are the first Silverlight functions to run in any Silverlight apps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 13:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372078#M9614</guid>
      <dc:creator>HubertLo</dc:creator>
      <dc:date>2010-04-14T13:47:23Z</dc:date>
    </item>
    <item>
      <title>First Silverlight Application Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372079#M9615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My guess is the .xap file is not in the website folder that the object tag in the html test page is referring to, or the webserver is not returning the correct mime type for .xap files.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 16:18:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372079#M9615</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-04-14T16:18:02Z</dc:date>
    </item>
    <item>
      <title>Solution Found</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372080#M9616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are the man Morten.&amp;nbsp; Your first guess was the problem.&amp;nbsp; Sure enough there was no .xap file in the Client Folder.&amp;nbsp; So I copied it over into there from the bin folder.&amp;nbsp; Now it works.&amp;nbsp; Any idea on why the .xap file is not getting moved or created in the Client Folder?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help!.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My guess is the .xap file is not in the website folder that the object tag in the html test page is referring to, or the webserver is not returning the correct mime type for .xap files.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 18:40:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372080#M9616</guid>
      <dc:creator>EricDaniel</dc:creator>
      <dc:date>2010-04-14T18:40:31Z</dc:date>
    </item>
    <item>
      <title>First Silverlight Application Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372081#M9617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One of the bugs I've seen in VS2010RC is that when you add a new project, its build action is sometimes not set. Go to "Build - Configuration Manager" and make sure there is a checkmark in the "build" column for your project in all the configurations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 19:23:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372081#M9617</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-04-14T19:23:38Z</dc:date>
    </item>
    <item>
      <title>First Silverlight Application Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372082#M9618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm actually using VS2008 Express.&amp;nbsp; I checked out the setting and there was a checkmark in the build column.&amp;nbsp; Well, at least I know now if it does it again, I know how to fix it.&amp;nbsp; Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 20:53:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372082#M9618</guid>
      <dc:creator>EricDaniel</dc:creator>
      <dc:date>2010-04-14T20:53:43Z</dc:date>
    </item>
    <item>
      <title>First Silverlight Application Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372083#M9619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use VS2008 as well for the Silverlight work, VS2008 Professional Sp1. There is a setting that controls where xap goes. You should not need to copy it manually. You may want to try publishing the hosting ASP.NET project which should include the ClientBin folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the ASP.NET host project that is created with the Silverlight project automatically in VS2008, look at the properties by Right Click -&amp;gt; Properties. The last item on the vertical tab should be "Silverlight Applications". You should see your Silverlight project shown is the list. The "Path in Web" should be set to "ClientBin" which is the default location. If you change this default location in&amp;nbsp; object tags in the aspx page, you will have to change the settings here as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 23:07:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372083#M9619</guid>
      <dc:creator>HubertLo</dc:creator>
      <dc:date>2010-04-14T23:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: First Silverlight Application Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372084#M9620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same error, however, i've tried all the solutions suggested - MIME, Build-Configuration Manager. Looks like my Silverlight project just doesn't compile. There's no xap file being created.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 21:59:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/first-silverlight-application-problem/m-p/372084#M9620</guid>
      <dc:creator>JoyC</dc:creator>
      <dc:date>2010-06-23T21:59:38Z</dc:date>
    </item>
  </channel>
</rss>

