How to Troubleshoot an Unhandled Error in a Silverlight Application
A Silverlight application may encounter an unhandled exception if the site it is hosted on is not configured properly. You must add the extensions used for this type of application to the MIME types if your server does not support them by default. MIME stands for Multipurpose Internet Mail Extensions. They describe different content types that can be used within the site. The application will otherwise not be able to start, because the server will be unable to handle the file types used to run it.
Instructions
-
-
1
Log on to your Web server. Press the "Windows" and "R" buttons simultaneously to open the Run dialog box.
-
2
Type "inetmgr" (without quotes) and click "OK" to open IIS Manager.
-
-
3
Click the arrows to the left of the name of the computer and "Sites" on the left of the window.
-
4
Click the name of your site. Double-click "MIME Types" in the middle of the window.
-
5
Click "Add" in the right of the window to add a new MIME type. Type:
.xaml
in the file name extension text box and type:
application/xaml+xml
in the "MIME type" text box. Click "OK."
-
6
Click "Add" in the right of the window to add a new MIME type. Type:
.xbap
in the file name extension text box and type:
application/x-ms-xbap
in the "MIME type" text box. Click "OK."
-
7
Click "Add" in the right of the window to add a new MIME type. Type:
.xap
in the file name extension text box and type:
application/x-silverlight-app
in the "MIME type" text box. Click "OK."
-
8
Close the IIS Manager window.
-
1
References
- Photo Credit play icon. (with clipping path) image by Andrey Zyk from Fotolia.com