Thread: unhandled error in silverlight application code 2104 category:initialize - Silverlight in IIS
-
07-27-2010, 01:43 PM #1
- Join Date
- Apr 2008
- Location
- Boston, USA
- Posts
- 13,122
- Thanks
- 742
- Thanked 674 Times in 543 Posts
- Blog Entries
- 4
- Feedback Score
- 4 (100%)
unhandled error in silverlight application code 2104 category:initialize - Silverlight in IIS
unhandled error in silverlight application code 2104 category:initialize - Silverlight in IIS
When you're hosting Silverlight, you have to tweak your IIS settings to allow the server to know how to handle the extensions that it's not familiar with.
In IIS you have to add these MIME types.
.xaml application/xaml+xml
.xap application/x-silverlight-app
.xbap application/x-ms-xbap
To add the MIME types to IIS6:
1. Choose the Virtual Directory or Default Web Site in IIS
2. Open the context menu and choose "Properties"
3. Select the "HTTP-Headers" tab
4. Click the button labeled "File Types..." in MIME Map section
5. Choose "New Type" and type the extension from above into the extension field and the application type into the MIME type field.
6. After adding all 3, click "OK" then click "Apply" on the main menu. You're done. No restart needed.
In more recent versions of IIS, process is little different, but I am sure you got the idea how to do it.
Similar Threads
-
Know Which Version of Silverlight is Installed in Your Computer
By manik in forum ASPReplies: 0Last Post: 07-26-2010, 03:38 PM -
Fatal Error - Silverlight Installation - Visual Studio 2008
By manik in forum ASPReplies: 0Last Post: 07-10-2010, 07:49 PM -
An application error occurred on the server Error at GoDaddy.com
By manik in forum Web HostingReplies: 15Last Post: 12-23-2008, 05:20 AM -
Silverlight
By abdullah5 in forum MicrosoftReplies: 5Last Post: 08-10-2008, 10:50 PM -
Microsoft Silverlight
By muazra in forum MicrosoftReplies: 1Last Post: 07-12-2008, 01:02 AM


Reply With Quote

