getting Channel.Security.Error

17 views
Skip to first unread message

Priti Gupta

unread,
May 23, 2012, 9:04:42 AM5/23/12
to flex_...@googlegroups.com
Hi all,

I am using google weather service call but i m getting--

Channel.Security.Error

Security error accessing url

Error #2048: Security sandbox violation: http://localhost:8080/SMSWeb/nmsview/NMSMain.swf cannot load data from http://www.google.com/ig/api?.


and also i added the crossdomain.xml .this is successfully loaded. but still i am getting the same problem.
Please help me out.

_
Thanks
Priti

Priti Gupta

unread,
May 23, 2012, 9:19:09 AM5/23/12
to flex_...@googlegroups.com
code is below which i am using please help me...it always goes to fault even i added the crossdomain.xml in the root file.


public class MapDelegate
{
protected var googleUrl:String = "www.google.com"; 
private var responder:IResponder;
public function MapDelegate(responder:IResponder)
{
this.responder = responder;
}
public function getWeather(zipCode:String):void
{
var googleWeatherAPI:HTTPService = new HTTPService();
googleWeatherAPI.resultFormat ="e4x";
var token:AsyncToken = googleWeatherAPI.send();
token.addResponder(responder);

Divya Agarwal

unread,
May 31, 2012, 3:43:22 AM5/31/12
to Flex India Community
Dear Priti

Check it if you are running your code using network monitor . If it is
disable it for ur project and then compile the code.

Regards
Divya

Priti Gupta

unread,
May 31, 2012, 12:34:47 PM5/31/12
to flex_...@googlegroups.com
now i got this file actionScriptProperties for enable disable. but in it i found includeNetmonSwc="false" .

On Thu, May 31, 2012 at 11:28 AM, Priti Gupta <mailtopr...@gmail.com> wrote:
i am not getting. How i will find it  whether i am using network monitor or not? and should i disable it?
Please let me know.

--
Thaks
Priti


Divya

--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.



Priti Gupta

unread,
May 31, 2012, 11:28:18 AM5/31/12
to flex_...@googlegroups.com
i am not getting. How i will find it  whether i am using network monitor or not? and should i disable it?
Please let me know.

--
Thaks
Priti

On Thu, May 31, 2012 at 3:43 AM, Divya Agarwal <er.di...@gmail.com> wrote:
Divya

Veena Chezhian

unread,
Jun 4, 2012, 1:41:10 PM6/4/12
to flex_...@googlegroups.com
Web Service enabled server ( application server )  should have the crossdomain policy set to accept the request from you. Only then you can successfully send and receive message from that server. 
Reply all
Reply to author
Forward
0 new messages