Silverlight Help


Silverlight Tips

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

Comments  22

  • 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
  • Bjmyka 9 Feb, 03:56 AM

    Dude,

    Thanks a lot, i have been battling with this error for days now almost discouraging from learning silverlight!


    Thanks alot
  • Bjmyka 9 Feb, 03:56 AM

    Dude,

    Thanks a lot, i have been battling with this error for days now almost discouraging from learning silverlight!


    Thanks alot
  • Glenn 26 Feb, 12:19 PM

    My laptop can not update silverlight. I cannot uninstall the version I now have on  my laptop.
  • James 2 Mar, 07:27 PM

    Thank you!!!
  • heather 3 Mar, 04:28 PM

    Thanks for posting this.  I have been trying to solve this and everyone else says it is the mime types.

    Good find thanks.  Hopefully Msoft will fix this before the final release.
  • Zikrij 21 Mar, 04:52 AM

    Thanks a lot.
  • William 14 Apr, 09:47 AM

    Well, that's Microsoft for you. How do they expect to ever be taken seriosuly when their 'out of the box' Hello World app takes experiecned developers hours to 'figure out'. Beyond insane!!
  • Andrew 27 Apr, 01:27 PM

    This solution doesn't work. You say the folder is empty, but in my particular case, it's not empty. The file is there.
  • Achutha Krishnan 2 May, 02:47 PM

    This solution didn't work. I get the same error!
  • David 7 May, 10:26 PM

    Had he same 2104 error. The xap file was being created anew each build and placed in the ClientBin folder am using VS2010 and SL4 RTW. Deleted and recreated the 'Silverlight Applications' entry in the web project which fixed the problem. Was working initially but after adding data entity stuff began failing. Very frustrating!!!
  • Jane Kwang 23 Jun, 02:55 AM

    TQ.  Is work for me.
Post a comment!
  1. Formatting options