Page view counter

Silverlight Tips of the Day - Blog by Mike Snow

Game Programming with Silverlight

Silverlight Tip of the Day #71 – New Silverlight 2 Web Site Clean Up Check List

When creating a Silverlight application with a web site there are a number of cleanups you will want to perform. I have created a little check list here that I will maintain and update as I get new ideas.

  1. Change the Page Title. By default the title is set to your application name. Most likely, this is not what you will want. Open up your web page (I.e. default.aspx) and change the name in the <title></title> tags.

  2. Minimum Version. If you have a Silverlight 2 web site you created prior to installing the RTM version make certain to update your Minimum version of your Silverlight control in your web page to MinimumVersion="2.0.31005.0.”

  3. HTML. IIS Servers are setup by default to look for default.htm. If you use default.html to host your Silverlight app, change the extension to “.htm”.

  4. Error Message. If you use the HTML file to host your Silverlight app, change the error message form "Unhandled Error in Silverlight 2 Application" to something more specific to your site. The same thing applies to your App.xaml.cs ReportErrorToDOM() function.

  5. Install Experience – Create a custom experience for users who do not have Silverlight installed. See Tip of the Day #38 for an example on how to do this.

  6. MIME Type. If you are hosting your application on your server, open IIS and make certain you have the XAP extension registered to “application/x-silverlight-app”. See Figure 1.1 for an example.
image
Figure 1.1. XAP Mime Type Registration

Thank you,
--Mike Snow

 Subscribe in a reader

Comments

Microsoft Weblogs said:

When creating a Silverlight application with a web site there are a number of cleanups you will want

# November 17, 2008 7:12 PM

spo81rty said:

These are great suggestions.

I would also recommend making sure that you warn your users if they don't have silverlight installed in an elegantly way.

# November 17, 2008 7:47 PM

mike.snow said:

Yep, I talk about in tip #38 - silverlight.net/.../silverlight-tip-of-the-day-38-how-to-customize-the-silverlight-install-experience.aspx

I will add that though to the list thanks!

# November 17, 2008 7:54 PM

Silverlight 2 Webseiten Clean Up Check at Blog von J??rgen Ebner said:

Pingback from  Silverlight 2 Webseiten Clean Up Check at Blog von J??rgen Ebner

# November 18, 2008 1:58 AM

Silverlight Tip of the Day #72 ??? New Silverlight 2 Web Site Clean … | bestwebhostingservices.com said:

Pingback from  Silverlight Tip of the Day #72 ??? New Silverlight 2 Web Site Clean &#8230; | bestwebhostingservices.com

# November 18, 2008 5:17 AM

Silverlight Tip of the Day #72 ??? New Silverlight 2 Web Site Clean … | deleteblog.com said:

Pingback from  Silverlight Tip of the Day #72 ??? New Silverlight 2 Web Site Clean &#8230; | deleteblog.com

# November 18, 2008 5:44 AM

Dew Drop - November 18, 2008 | Alvin Ashcraft's Morning Dew said:

Pingback from  Dew Drop - November 18, 2008 | Alvin Ashcraft's Morning Dew

# November 18, 2008 9:38 AM

Community Blogs said:

In this issue: Justin Angel, Shemesh, Albert Eyal, Steve, Ruurd Boeke, Mike Snow, Mehdi Slaoui Andaloussi

# November 18, 2008 4:52 PM

2008 November 19 - Links for today « My (almost) Daily Links said:

Pingback from  2008 November 19 - Links for today &laquo; My (almost) Daily Links

# November 19, 2008 4:22 AM

spo81rty said:

Hey check this out Mike

www.codeplex.com/SilverlightValidator

# November 21, 2008 2:54 PM

#.think.in said:

#.think.in infoDose #8 (17th Nov - 22nd Nov)

# November 23, 2008 5:38 PM

Секреты Visual Studio said:

Когда создаешь новое приложение на Silverlight, необходимо проделать массу подготовительных операций.

# November 24, 2008 12:35 AM

Silverlight Tips of the Day - Blog by Mike Snow said:

The purpose of this post is to create an outline summary all the blogs from my Silverlight tips of the

# January 2, 2009 5:57 PM

Silverlight Tips of the Day - Blog by Mike Snow said:

The purpose of this post is to create an outline summary all the blogs from my Silverlight tips of the

# January 2, 2009 5:57 PM

o UAU nosso de cada dia said:

essa lista eu copiei desse blog bárbaro (acompanhe por RSS você também): uma lista de dicas super úteis

# January 3, 2009 6:25 AM

Visual Web Developer Team Blog said:

This link provides a complete Tips of the Day Summary Outline - silverlight.net/.../silverlight-tips-of-the-day-summary-outline.aspx

# January 8, 2009 6:37 PM