As you may know, one of the nearshore software development services we offer is the silverlight platform implementation.
And in this post I will guide you through the process of adding a Silverlight application to your existing ASP.NET website.
The process of adding the Silverlight application to the solution is actually quite simple:
1. On the solution explorer, right click the solution. On the context menu, click on Add and then click on New Project.
2. From the Project Types list in the “Add New Project” dialog, chose Silverlight; then chose the template Silverlight Application. Give a name to the app and then click OK.

On the next dialog, check the “Host the Silverlight application in a new or existing Web site in the solution”.

This will create a folder named ClientBin in the website project, where the .xap file is placed. A .xap file is created after compiling the Silverlight project and it is a .zip that contains the assembly manifest file and the assembly file(s).
3. Now we need to embed the Silverlight object in the desired page, using the object html tag.

6. After finishing the Silverlight app, the next thing to do is publish our website and configure the web server to allow the Silverlight application to be served.
a. In the IIS Manager find the website hosting the Silverlight application and right click on it. Then click on Properties.
b. On the Properties window click on the HTTP Headers tab. At the bottom we’ll find the MIME Types, click on the button.


c. On the MIME types window add the following types:
· Extension: .xaml
MIME Type: application/xaml+xml
· Extension: .xap
MIME Type: application/x-silverlight-app

Now we have completed the process and have our Silverlight application working on our website.
Hope this helps you.