
Chapter 10: Designing Silverlight Applications | 297 |
Figure 10-8 Executing an OOB application
Deploying Silverlight Applications
You can deploy a Silverlight application to a Web site, as you would an ASP.NET MVC application. However, you’ll need to ensure the MIME type and policy is in place to ensure the application will run outside of your development environment.
If you’re running IIS 7, Silverlight will already be set up. However, if you’re deploying to an IIS 6 server, you must set the MIME type for *.xap files to application/
1.Open Administrative Tools Internet Information Services (IIS) Manager.
2.Under Web Sites, in IIS,
3.Click the HTTP Headers tab, click MIME Types, and click New.
4.Type .xap as the Extension and
Click OK three times to close all windows and close IIS.
Additionally, you must have a policy file in the root folder of your Web site. There are two types of policy files you can use: crossdomain.xml or clientaccesspolicy.xml.