无法在我的网站上查看我的Silverlight应用程序 [英] Unable to view my Silverlight application on my website

查看:91
本文介绍了无法在我的网站上查看我的Silverlight应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我最近设计了一些Silverlight应用程序,并希望将它们放在我的ASPX网页上.以下是我的经验:

我从常规方法开始,在该方法中,我将".xap"文件上传到Web服务器上,然后通过他们建议的常规标记引用它们,以将Silverlight应用程序嵌入到网页中.在我的本地IIS上进行测试时,该网站看起来不错,所有的Silverlight控件均按预期显示.
但是,当我通过Web服务器尝试相同操作时,所看到的只是我希望显示Silverlight控件的地方页面上的白色补丁.
后来我发现``.xap''文件尽管上传到Web服务器后是通过ftp会话出现的,但仍然无法通过Web链接访问它们.

我在论坛上进行了搜索,发现这可能是MIME的问题,它具有将``.xap''文件重命名为``.xap.zip''并将其上传到Web服务器的另一种解决方案. .我试过了,但是问题仍然存在(一切都在本地IIS上按预期进行,但是在服务器上什么也没有出现).

请帮我摆脱这个问题,因为我快要放弃了,但是我不想.

Hi,

I have desgined a few silverlight applications recently and wanted to put them on my ASPX web pages. The following was my experience:

I started with the normal way, where I uploaded my ''.xap'' files onto my web server and then referenced them through the normal markup they recommend to embed a silverlight application on a web page. When tested on my local IIS, the website looked fine with all the silverlight controls displayed as expected.
However, when I tried the same through the web server, all that I saw was a white patch on my page at the places I was expecting my silverlight controls to be shown.
Later I discovered that the ''.xap'' files, although after uploading to the web server appear through an ftp session, they are still not accessible through a web link.

I searched through the forums and found out that it can be a problem of MIME, that has an alternate solution of renaming the ''.xap'' files as ''.xap.zip'' and uploading them over there on the web server. I tried that but the problem still persists (everything goes as expected on the local IIS, but on the server, nothing shows up).

Please help me get rid of this problem as I am almost about to give up but I don''t want to.

推荐答案

我自己解决了.
当我在个人PC上尝试上述操作时,上述操作有效.

结论:将".xap"文件重命名为".xap.zip",并使用这些新名称引用网页标记中的文件,这样可以正常工作,并且您无需注册任何MIME.
I got it solved myself.
The thing above worked, when I tried it on my personal PC.

Conclusion: Rename you ''.xap'' files to ''.xap.zip'' and reference the files in your web page markups with these new names, it works that way and you don''t need to register any MIMEs.


这篇关于无法在我的网站上查看我的Silverlight应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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