Question : Security error accessing url-Destination: DefaultHTTP-Channel.Security.Error

Hi, I have the following problem.

I'm working on the subnet 192.168.90.*. I create a flex app with the following code  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" >

<mx:Script>
		<![CDATA[
			
			import mx.rpc.events.ResultEvent;
			import mx.rpc.events.FaultEvent;
			import mx.controls.Alert;
			import mx.utils.URLUtil;
	
			private function testWebServiceSuccess(event:ResultEvent):void
	        {
	        	this.txtValue.text = event.result.toString();	
	        	
			}
			
			private function testWebServiceFault(event:FaultEvent):void
	        {
	        	Alert.show(event.fault.faultString + "-" + 
	        	event.fault.faultDetail + "-" + 
	        	event.fault.faultCode, "Error");
			}
			
			private function testWebServiceClick():void
	        {
	        	wsx.ConversionRate("USD","COP");
	        	
			}
	        
		]]>
</mx:Script>
	


	<mx:Text x="92" y="55" text="Value:" id="lblValue"/>
	<mx:TextInput x="145" y="53" id="txtValue"/>
	<mx:Button x="204" y="83" label="Invoke WS" id="btnInvokeWS" click="testWebServiceClick()"/>
	
	
	<mx:WebService 	id="wsx" 
					wsdl="http://www.webservicex.net/CurrencyConvertor.asmx?wsdl" 
					showBusyCursor="true">
		<mx:operation 	name="ConversionRate" 
						resultFormat="object" 
						result="testWebServiceSuccess(event)" 
						fault="testWebServiceFault(event)">
	</mx:operation>
	</mx:WebService>
	
</mx:Application>


As you can see, the flex app invokes a web service from http://www.webservicex.net/. I review, and there is a crossdomain file on it (http://www.webservicex.net/crossdomain.xml) allowing access from whichever domain.

<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>

When I deployed the flex app on the server and I try to access from a browser, I get the following Error:

Security error accessing url-Destination: DefaultHTTP-Channel.Security.Error

I read a lot about security sandbox in flash player, I tried to configure everything but I'm still having the error.

Considerations.

1. The client browser has the IP 192.168.90.16 (Firefox 3.6, Flash Player 10.0.45.2, Windows 7)
2. The server where the flex app was deployed has the IP 192.168.90.53 (Windows Web Server 2008 R2 64bits, IIS 7, Flash Player 10.0.45.2)
3. I have connectivity between the machines and I have access to the web services' WSDL.
4. Both machines, the client and the server are not member of a domain (is it important?)
5. The server machine has the following crossdomain file located at: http://192.168.90.53/crossdomain.xml

<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" to-ports="*" secure="false"/>
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>


I'll really appreciate your help. I'm very confused...
Thanks in advance.


Answer : Security error accessing url-Destination: DefaultHTTP-Channel.Security.Error

just clear the cache of your browser and try again, everything just looks fine.

when do u see this error when you click the button, which invokes webservice???
Random Solutions  
 
programming4us programming4us