Error #2044: 未处理的 NetStatusEvent:。 level=error, code=NetConnection.Call.BadVersion。
Posted on 2010-06-07 21:01 Bill Yuan 阅读(3933) 评论(0) 编辑 收藏 举报
打开PHP_error.log,搜索VerboseException,看到:
[19-May-2010 09:57:17] PHP Fatal error: Uncaught exception 'VerboseException' with message 'Standalone Flash player disabled. Update gateway.php to allow these connections' in E:\wamp20h\www\amfphp 1.9\core\amf\app\Gateway.php:357
打开amf/gateway.php,找到代码:
[19-May-2010 09:57:17] PHP Fatal error: Uncaught exception 'VerboseException' with message 'Standalone Flash player disabled. Update gateway.php to allow these connections' in E:\wamp20h\www\amfphp 1.9\core\amf\app\Gateway.php:357
打开amf/gateway.php,找到代码:
代码
将这两句注释掉,重启服务,在尝试连接即可。为什么要注释掉,自己看下说明。
if(PRODUCTION_SERVER)
{
//Disable profiling, remote tracing, and service browser
$gateway->disableDebug(); //注释掉
//Keep the Flash/Flex IDE player from connecting to the gateway. Used for security to stop remote connections.
$gateway->disableStandalonePlayer(); //注释掉
}
{
//Disable profiling, remote tracing, and service browser
$gateway->disableDebug(); //注释掉
//Keep the Flash/Flex IDE player from connecting to the gateway. Used for security to stop remote connections.
$gateway->disableStandalonePlayer(); //注释掉
}