Silverlight Error #2104 Could not download the silverlight application in IIS6

 
If you receive this error while trying to deploy your Silverlight application, make sure you did the following things:

 
1. Adjust the Content Expiration Setting

You should adjust the content expiration setting to 1 minute. The following procedure outlines how to do this with IIS.

  1. Right-click  your Web Site and select Properties from the context menu.

  2. Select the HTTP Headers tab and click "Enable Content Expiration".

  3. Set the content to expire after 1 minute.

2. Register MIME Types and File Extensions

You must register some MIME types and file extensions so that the browser on the client's system can load the correct handler. You need to add the following types:

Extension

MIME Type

.xap

application/octet-stream

.xaml

application/xaml+xml

The .xap needs to have that mime type, in order to be able to be downloaded.

3. Execute permissions must be Scripts Only.

  1. Right-click  your Web Site and select Properties from the context menu.

  2. Select the Directory tab and change "Execute Permissions" to Script only.

 


Hope this helps. 

Published Saturday, June 14, 2008 3:43 PM by Javier.Villarreal
Filed under: ,

Comments

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Tuesday, June 17, 2008 7:44 PM by Ivana Tilca

i am trying to solve this issue but in IIS 7 :( no property area :(

help ?

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Monday, June 30, 2008 4:07 PM by Manish

thanks for posting this. I spend couple of hours, and then find this article and my problem is solved in next 5 mins.

Thanks again.

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Tuesday, July 08, 2008 4:13 AM by Dennis de Laat

Finally a working solution. Thanks!

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Saturday, September 06, 2008 8:22 PM by Nick

Finally all the answers on one page...Thanks

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Wednesday, October 15, 2008 7:43 PM by Louie

This page addressed several problems with my site configuration vs silverlight.

Thanks!!

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Sunday, October 19, 2008 7:59 AM by Shivlee

thanks for the solution..

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Thursday, November 06, 2008 5:00 PM by Johan

Thankyou for this solution, great!

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Wednesday, December 10, 2008 3:34 PM by Manoj Taneja

Thanks A LOT,,,,,WORKING GREAT!!!!

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Monday, December 22, 2008 10:49 AM by Tom

Thanks!! For some reason it only happened on Windows Server 2003, I never had to do this in Windows XP.

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Saturday, December 27, 2008 6:00 AM by me

How about a ASP.NET Development Server?

I have a web application in VS 2005 and a I try to open in IE a page with Silverlight on it and i get this error.

Could you tell me how to configure de ASP.NET Development server the same way as you did with IIS?

Thank you.

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Friday, January 30, 2009 5:05 PM by Javier.Villarreal

--> me

You could try to use this approach:

www.apijunkie.com/.../Fix-for-Could-not-download-the-Silverlight-application-error.aspx

in order to avoid configuring the VS 2008 or VS 2005 Development Servers at all.

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Friday, June 12, 2009 9:33 AM by Jason

Problem solved, thanks!

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Tuesday, June 16, 2009 2:56 PM by RoseyV

Thanks!!!

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Thursday, August 06, 2009 3:46 PM by Nev

Thanks - you're a star!!

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Wednesday, August 19, 2009 4:57 AM by JoeriH

Finally the complete solution, thanks a lot!

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Friday, August 28, 2009 1:45 PM by Mariusz

Perfect. Elegant and clear solution!

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Monday, September 14, 2009 12:51 AM by Irshad Kurmally

Solved my problem on spot. THX DUDE!

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Monday, September 14, 2009 1:10 AM by Sungho, Lee

Problem solved, thanks!

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Thursday, September 17, 2009 2:50 PM by Tomas Lindberg

Thanks a lot, great help, I have just enough of doing with editing and encoding without the need to also be a web expert, lucky there are good guys out there, if you ever need any encoding help, you have my url

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Sunday, October 18, 2009 11:46 PM by Brahmam

Still i am get the Same Problem.

i am new for SilverLight..............

Error:2104

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Monday, October 19, 2009 12:09 AM by Brahmam

Please help me..........

# re: Silverlight Error #2104 Could not download the silverlight application in IIS6

Friday, October 23, 2009 5:01 PM by rlbaum

Thanks.  Very good information.

Leave a Comment

(required) 
(required) 
(optional)
(required)