错误:无法下载Silverlight应用程序。检查Web服务器设置 [英] Error: Could not download silverlight application. Check web server settings

查看:211
本文介绍了错误:无法下载Silverlight应用程序。检查Web服务器设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在previewing视频文件已经存在的web应用程序开发一个Silverlight页面。当我在本地创建一个asp.net应用程序和解决方案中添加Silverlight应用程序它完美。但是,当我试图进入已经存在的项目,包括它抛出这个错误。我还没有部署到IIS。这种情况发生在调试。

Developing a silverlight page in already existing web application for previewing video files. When I create a asp.net application locally and add silverlight application on the solution it works perfectly. But while I am trying to include into already existing project it throws this error. I have not deployed into the IIS. this happens while debugging.

推荐答案

检查网页的路径XAP文件。它应该是这样的:

Check the path to your xap file in your webpage. It should be something like:

 /ClientBin/my.xap

此外,还应确保您的XAP文件实际上是在ClientBin目录。在Web应用程序属性,选择 Silverlight应用程序标签和Silverlight项目添加到列表中。

Also ensure that your xap file is actually in the ClientBin folder. In the web application Properties, choose the Silverlight Applications tab and add the silverlight project to the list.

虽然可能不是适合你的情况,这也可以,如果你使用的是IIS,也没有登记正确的 mime类型出现。 XAP 文件。它应该设置为应用程序/ x-silverlight的应用

Although probably not applicable in your case, this can also occur if you are using iis and haven't registered the correct mime type for .xap files. It should be set to application/x-silverlight-app.

这篇关于错误:无法下载Silverlight应用程序。检查Web服务器设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆