Silverlight Help


Go Back

Silverlight 3 Could Not download the silverlight Application

I created a simple Silverlight 3 app.

 

<UserControl x:Class="SilverlightApplication2.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <Grid x:Name="LayoutRoot">
        <TextBlock Text="Hello World!" ></TextBlock>
    </Grid>
</UserControl>

 

When I run it I get this error

image

Line: 56
Error: Unhandled Error in Silverlight Application
Code: 2104   
Category: InitializeError      
Message: Could not download the Silverlight application. Check web server settings   

 

Well if you look in the ClientBin folder you will see it is empty so the xap file is not available to be used

 

To fix this right click on the web application and select Build Order.  On the Dependencies tab make sure the Checkbox next to the Silverlight app is checked.

image

Facebook DZone It! Digg It! StumbleUpon Technorati Del.icio.us NewsVine Reddit Blinklist Furl it!

Comments  11

  • Tricia Jones 1 Sep, 10:07 PM

    I cant uninstall silvernight yet it dose not seem to be on my computer when I try and install  a error sign comes up telling me to find the right file but I cant i am getting very confused
  • RS 20 Oct, 04:21 PM

    Wow!  Been working on this 2104 error for hours!  It was the Build Order/Dependencies Silverlight Checkbox... Thanks!!!!!!!!!!!!!!!!! ! ! ! ! ! ! !
  • konsti 27 Oct, 06:52 AM

    Hi Ken,

    thanks for posting your solution. It helped me a lot. After fiddeling around for almost two days with this 2104-errorcode, now my app works!

    konsti

     

  • konsti 27 Oct, 07:58 AM

    Hi Ken,

    thanks for posting your solution. It helped me a lot. After fiddeling around for almost two days with this 2104-errorcode, now my app works!

    konsti

     

  • Michael 11 Nov, 07:01 PM

    Thanks this was the solution.
  • Deepti parulekar 12 Nov, 11:57 PM

    Hi,

    I just want to know about the silverlight installation ...

    Actully i was tried to install silverlight 3.0 SDK.. that time it shows some system error...

    so i just want to know about ...Silverlight 3.0 SDK supports for win Xp professional ..

    Thanks in advance..

    Warm regards,
    Deepti Paruekar
  • CrazySilverlight 16 Nov, 10:11 PM

    Thanks man, after weeks for finding the solution for this 2104 problem, yours solve it in minutes. Thanks thanks thanks god bless you.
  • ieromlmv 2 Dec, 08:54 PM

    ieromlmv
  • Sandeep 17 Dec, 11:44 PM

    Hey Ken,

    I am also having the same problem. I have a simple silverlight application as yours (with the textblock "Hello World") an I host that application with the exsiting ASP.NET application. so when I run the project it gives me the #2104 error and then after reading yout solution I went to Buld Order and then that "ASP.NET site is greyed out.

    Im using VS 2010 beta
    and Silverlight 3.
  • Sandeep 18 Dec, 12:33 AM

    Hey Ken,

    I am also having the same problem. I have a simple silverlight application as yours (with the textblock "Hello World") an I host that application with the exsiting ASP.NET application. so when I run the project it gives me the #2104 error and then after reading yout solution I went to Buld Order and then that "ASP.NET site is greyed out.

    Im using VS 2010 beta
    and Silverlight 3.
  • Buddy 21 Dec, 01:00 PM

    thanks ..it is really helpful. HAts off to you
Post a comment!
  1. Formatting options