Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net flex 4.6:在flex移动应用程序中使用URLLoader_Asp.net_Web Services_Apache Flex_Flash Builder_Flex4.5 - Fatal编程技术网

Asp.net flex 4.6:在flex移动应用程序中使用URLLoader

Asp.net flex 4.6:在flex移动应用程序中使用URLLoader,asp.net,web-services,apache-flex,flash-builder,flex4.5,Asp.net,Web Services,Apache Flex,Flash Builder,Flex4.5,我是Flex mobile应用程序的初学者,我在使用与asp.net服务交互的Flex mobile应用程序时遇到的问题 我尝试在flex移动应用程序中加载URLString,但它总是转到NoConnection函数 当我使用断点且手机已连接到互联网时 这是我的密码 protected function Submit():void { SendLoader = new URLLoader(); va

我是Flex mobile应用程序的初学者,我在使用与asp.net服务交互的Flex mobile应用程序时遇到的问题 我尝试在flex移动应用程序中加载URLString,但它总是转到NoConnection函数 当我使用断点且手机已连接到互联网时 这是我的密码

                protected function Submit():void
        {

            SendLoader = new URLLoader();
            var URLString:String ="http://localhost:1614/Master_Services/Problems/insertProblem.aspx";
            SendLoader.addEventListener(IOErrorEvent.IO_ERROR,NoConnection);
            SendLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS,httperror);
            SendLoader.addEventListener(Event.COMPLETE,SendComplete);
            SendLoader.load(new URLRequest(URLString));

        }
更新:此URL在计算机浏览器中运行良好,但在移动浏览器中无法加载,并且给我的网页不可用。我认为这可能是问题所在,如果这是问题所在,那么在我通过USB进行调试时,是否有想法加载moblie中本地主机中的url


请帮助,提前谢谢

您需要将
本地主机
更改为您计算机的IP地址。在移动浏览器中,您的代码试图连接到设备上的端口1614,而不是开发计算机上的端口1614

还要确保您的防火墙配置为允许请求进入该端口;这是很容易错过的一步。您可能需要将代码部署到计算机上的IIS才能使其正常工作。VisualStudio的内置Web服务器只能从localhost工作(请参阅)