Flex RSL 错误:加载的文件没有有效签名
我正在使用 Flex SDK 4.5 创建 swf 文件,最近在尝试打开 swf 文件时出现以下错误:
[trace] 警告:忽略 http:// 的策略文件中的“安全”属性fpdownload.adobe.com/pub/swz/crossdomain.xml。 “安全”属性仅允许在 HTTPS 和套接字策略文件中使用。有关详细信息,请参阅 http://www.adobe.com/go/strict_policy_files。 [trace] 错误#2046:加载的文件没有有效的签名。 [trace] 无法加载 RSL http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/framework_4.5.1.21328.swz [trace] 故障转移到 RSL Framework_4.5.1.21328.swz
我完全不知道 rsl 加载步骤发生了什么。
知道如何解决这个问题,而无需将 rsl 静态链接到 swf 文件吗?
I'm using Flex SDK 4.5 to create swf files, recently I got the following error when try to open my swf file:
[trace] Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml. The 'secure' attribute is only permitted in HTTPS and socket policy files. See http://www.adobe.com/go/strict_policy_files for details.
[trace] Error #2046: The loaded file did not have a valid signature.
[trace] Failed to load RSL http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/framework_4.5.1.21328.swz
[trace] Failing over to RSL framework_4.5.1.21328.swz
I totally have no idea whats going on with rsl loading step.
Any idea how to solve this without have to statically linking rsl into swf file ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请检查您的 .swz mime 类型设置,至少在我的情况下,尝试从应用程序文件夹而不是 Adobe 加载签名的 Adobe 框架 SDK 库 4.5.1 是通过在 Apache http.conf 中添加 mime 类型来实现的,如下所示
AddType application/ x-shockwave-flash .swz
Please check your mime-type setup for .swz, at least in my case trying to load signed Adobe framework SDK libraries 4.5.1 from application folder rather than from Adobe was achieved by adding mime type in Apache http.conf as follows
AddType application/x-shockwave-flash .swz
通常会弹出此错误,因为编译的应用程序使用的框架版本与您尝试通过 RSL 加载的框架版本不同。 Flash Player 在加载之前会验证 RSL 的文件大小摘要,因为如果加载的框架与应用程序指定的框架不同,则可能会导致不稳定的行为。
我想您正在尝试通过 Flash Builder 来完成此操作。如果是这种情况,您应该下载相同版本号的 flex sdk 并在此基础上进行构建才能正常工作。如果没有,您必须确保 RSL 指向与您正在编译的版本相同的版本。
This error normally pops up because the compiled application is using a different framework version than the one you're trying to load through RSLs. Flash Player verifies the filesize digest of the RSLs before being loaded because if a different framework is being loaded in than the one specified by the application, it can cause erratic behavior.
I would imagine you're trying to do this through Flash Builder. If that's the case, you should download the flex sdk of the same version number and build on that for it to work. If not, you'll have to make sure the RSL points to the same version as what you're compiling with.
导致此问题的另一个原因可能是用户计算机上的时钟设置为错误的时间/日期。
我知道这听起来很奇怪,但这与 swz 文件上的签名的解释方式有关。
这是我们一位客户的解决方案。
Another cause of this problem can be when the clock on the user's computer is set to the wrong time/date.
I know this sounds weird, but it has something to do with how the signatures on the swz files are interpreted.
This was the solution for one of our customers.