卢荣明 發表於 2017-3-20 17:23:02

Win2003系统下部署silverlight提示2104错误的解决方法图文教程

<p>公司网站我打算用Silverlight+SQLite来做,在这里我分享下在win2003下部署Silverlight遇到的一个问题,我将网站部署在win2003的IIS6时,我访问会出现以下错误:</p>
<p>Error: Unhandled Error in Silverlight Application Code: 2104</p>
<p>Category: InitializeError</p>
<p>Message: Could not download the Silverlight application. Check web server settingsv</p>
<p><span style="color: #ff0000"><strong>解决方法:</strong></span></p>
<p>1、我们需要右键单击配置好的网站,注意这里是选择配置的网站而不是Internet信息服务下的根目录,然后选择【<strong>属性</strong>】,然后我们选择【<strong>http头</strong>】如下图:</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201703/2017032017162556.jpg" /></p>
<p style="text-align: center">图1.</p>
<p>2、然后我们选择右下角偏上的【<strong>MIME类型(<u>M</u>)】,</strong>将弹出如下窗口:</p>
<p align="center"><img alt="" src="https://img.jbzj.com/file_images/article/201703/2017032017162657.jpg" /></p>
<p style="text-align: center">图2.</p>
<p>3、然后我们在扩展名和MIME类型中添加以下三个:</p>
<p>    <strong>.xap&nbsp;&nbsp;&nbsp;&nbsp; application/x-silverlight-app</strong></p>
<p><strong>    .xaml&nbsp;&nbsp;&nbsp; application/xaml+xml</strong></p>
<p><strong>    .xbap&nbsp;&nbsp;&nbsp; application/x-ms-xbap</strong></p>
<p>添加成功后,我们再访问配置好的网站,如果没有其它问题就可以正常访问。</p>
<p>注:在Win2008上部署就不用设置这些,希望对有此问题的人有帮助。</p>
頁: [1]
查看完整版本: Win2003系统下部署silverlight提示2104错误的解决方法图文教程