FLEX/amfPHP ActionScript 错误 2048

发布于 2024-09-29 03:34:36 字数 620 浏览 9 评论 0原文

很抱歉标题中的文字混乱,但这就是我的困惑。我什至无法用简单的句子来总结我遇到的错误。

这个 flex/amfphp 应用程序在我的计算机上运行良好,即使它访问另一台服务器上的 Oracle 数据库。但是,当我尝试从另一台计算机访问它时,这是我收到的错误。我将尝试放入最相关的代码。(我的浏览器告诉我这是一个 ActionScript 错误)。

故障faultString =“发送失败”

faultCode =“Client.Error.MessageSend”

faultDetail =“Channel.Security.Error错误错误#2048:安全区域违规..

无法从http://localhost/.../amfphp/gateway.php

正如我之前所说,由于某种原因它可以在我的机器上运行。现在,当我尝试从其他计算机远程访问它时,PHP 引擎似乎正在该计算机的本地主机上查找 gateway.php ?这是否意味着 PHP 正在客户端的本地主机上查找 gateway.php 而不是在服务器上?

如果我错了,请纠正我,并提前致谢

Sorry about the mishmash of words in the title, but that's how confused I am. I can't even summarize the error I'm getting in a simple sentence.

This flex/amfphp application works fine on my computer, even though it accesses an Oracle database on another server. However, when I try to access it from another computer, this is the error I get. I'll try and put the most relevant code in. (My browser tell me this is an ActionScript error).

Fault faultString="Send failed"

faultCode="Client.Error.MessageSend"

faultDetail="Channel.Security.Error error Error #2048: Security Area Violation..

Couldn't load data from http://localhost/.../amfphp/gateway.php

As I said before, it works on my machine for some reason. Now, when I try to access this remotely from other machines, it seems that the PHP engine is looking for gateway.php on the localhost of that machine?? Does this mean that PHP is looking for gateway.php on the client's localhost rather than on the server??

Correct me if I'm wrong, and thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

叹梦 2024-10-06 03:34:36

Flex 中的 services-config.xml 可能指向 http://localhost/.../amfphp/网关.php
您需要更改该 XML 文件中的端点并重新编译应用程序。

您还可以在运行时创建 ChannelSet。在这种情况下,您不再需要 services-config.xml。看看 http://raghuonflex.wordpress.com/2008/06/05/ endpointatruntime/ 以获得一些灵感...

Your services-config.xml in Flex propably points to http://localhost/.../amfphp/gateway.php
You'll need to change the endpoint in that XML file and recompile the application.

You could also create your ChannelSet at runtime. In that case you don't need the services-config.xml anymore. Take a look at http://raghuonflex.wordpress.com/2008/06/05/endpointatruntime/ for some inspiration...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文