{"id":1130,"date":"2010-10-19T12:54:16","date_gmt":"2010-10-19T11:54:16","guid":{"rendered":"http:\/\/www.galhano.com\/blog\/?p=1130"},"modified":"2010-10-19T12:54:34","modified_gmt":"2010-10-19T11:54:34","slug":"how-to-solve-unhandled-error-in-silverlight-application-code-2104","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=1130","title":{"rendered":"How to solve Unhandled Error in Silverlight Application Code: 2104"},"content":{"rendered":"<p><strong>The Problem:<\/strong> You ftp a Silverlight App to an IIS website, go to the website in a browser, and get the following error:<\/p>\n<p style=\"padding-left: 30px;\">Message: Unhandled Error in Silverlight Application<br \/>\nCode: 2104<br \/>\nCategory: InitializeError<br \/>\nMessage: Could not download the Silverlight application. Check web server settings<\/p>\n<p><strong>The Cause:<\/strong> The Silverlight Mime types (.xaml, .xap and .xbap) are not listed in that websites registered mime types, therefore IIS will not send those files to the browser.<\/p>\n<p><strong>The Solution:<\/strong> Open IIS on the server, go to HTTP headers, click on Mime Types, click \u201cAdd New\u201d and add the following:<\/p>\n<p>Extension \u2013 Mime Type<br \/>\n.xaml \u2013 application\/xaml+xml<br \/>\n.xap \u2013 application\/x-silverlight-app<br \/>\n.xbap \u2013 application\/x-ms-xbap<\/p>\n<p>Hit Apply and your application will load!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Problem: You ftp a Silverlight App to an IIS website, go to the website in a browser, and get the following error: Message: Unhandled Error in Silverlight Application Code: 2104 Category: InitializeError Message: Could not download the Silverlight application. Check web server settings The Cause: The Silverlight Mime types (.xaml, .xap and .xbap) are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,119],"tags":[174,196],"class_list":["post-1130","post","type-post","status-publish","format-standard","hentry","category-iis","category-silverlight","tag-iis","tag-silverlight","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1130"}],"version-history":[{"count":3,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1130\/revisions"}],"predecessor-version":[{"id":1133,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1130\/revisions\/1133"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1130"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}