Register .XAP file extention in IIS : for Silverlight application

If you are having problems loading a Silverlight 2.0 application, and you have exhausted all options, you may need to register the XAP file extension in IIS. I banged my head against the wall (well, not really) trying to figure out why my application wasn’t loading. It turns out to be a simple fix. 


Register the MIME type for .xap to application/x-silverlight-app.


1. Go to Start\Administrative Tools and run IIS Manager
2. Right click on the server name and select "Properties"
3. In the Properties Dialog, click on the "MIME Types" button
4. In the "MIME Types" Dialog, click the "New" button
5. In the "MIME Type" Dialog enter one MIME Type at the time:

  • .xap     application/x-silverlight-app
  • .xaml    application/xaml+xml
  • .xbap    application/x-ms-xbap
For detailed information on Silverlight, visit http://silverlight.net/.

Comments

Popular posts from this blog

ContextSwitchDeadlock was detected

Visual Studio setup and deployment projects

Using SvcUtil.exe to generate the proxy class and config file