在 Silverlight 3 中请求 clientaccesspolicy 文件
我想知道是否可以专门发送请求以获取 Silverlight 中的 clientaccesspolicy.xml 文件?假设服务器一开始就处于离线状态,并且客户端在启动时没有获取策略文件。这会被缓存并且所有进一步的请求都会失败。
我想定期向服务器发送 GET 请求并请求策略文件。这样做可以吗?还是我别无选择,只能重新启动应用程序?
谢谢
I want to know if it is possible to specifically send a request to get the clientaccesspolicy.xml file in Silverlight? Say the server is offline to begin with and the client does not get the policy file on start. This gets cached and all further requests fail.
I want to send a GET request to the server and request for the policy file periodically. Will it be ok to do this or do I have no option but to restart the application ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,Silverlight 4 目前不支持该用例。
这是一个相当知名的问题,希望 Microsoft 能够自行在 Silverlight vNext 中修复它。如果您热衷于解决此问题,请考虑在 用户声音。
Unfortunately that usecase is not currently supported in Silverlight 4.
It is a fairly well-known issue and hopefully Microsoft will take it upon themselves to fix it in Silverlight vNext. If you're passionate about fixing this issue consider voting for it up on Uservoice.