强制浏览器更新后重新装载Silverlight的XAP [英] Forcing browsers to reload Silverlight xap after an update

查看:141
本文介绍了强制浏览器更新后重新装载Silverlight的XAP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Silverlight控件打包并部署到SharePoint Web部件。我在使用浏览器加载控件的新版本后,我把更新的麻烦。我更新我的XAP项目的装配和文件版本,但它似乎并不重要。让浏览器加载新的XAP的唯一办法是去和删除Internet临时文件。对我来说,在开发过程中,这是确定的,但我需要找到一个解决方案是时候投入生产之前。任何想法?

I have a Silverlight control packaged up and deployed to a SharePoint web part. I'm having trouble with the browser loading new versions of the control after I push an update. I'm updating the assembly and file version of my xap project, but it doesn't seem to matter. The only way to get the browser to load the new xap is to go in and delete temporary Internet files. For me, during development, that's OK, but I'll need to find a solution before it's time for production. Any ideas?

推荐答案

这与您的浏览器如何处理资源请求的事情。 Flash有类似的问题,并有一对夫妇的解决方法。

This has to do with how your browser handles resource requests. Flash has similar issues and there are a couple workarounds.

下面是一个的文章,详细说明的问题,可能的解决方案。

Here's an article that details the issue and possible solutions.

我建议做这样的事情:

假设你有这样对你的HTML您的XAP:

Say you have this for your xap in your html:

<param name="source" value="ClientBin/myApp.xap"/>



我会版本,它所以每当你做一个推你改变的版本号。例如:

I would version it so whenever you do a push you change the version number. Example:

<param name="source" value="ClientBin/myApp.xap?ver=1"/>

这篇关于强制浏览器更新后重新装载Silverlight的XAP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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