[Thread Edited By Adobe]
/*Don’t forget to meet and greet your fellow peers virtually by telling them about yourself here.
Go ahead and to it now: https://adobe.ly/3eDnB4v */
Actual Question:
HI
I am using a webservice(.net webservice) that is on my
localhost and using it in flex application that is also on my
system. Means both the webservice and flex application are on the
same system.
But when i gives the reference of the webservice using the
system ip and run the application by the flex builder it generates
the error as:
mx.messaging.messages::ErrorMessage)#0
body = (Object)#1
clientId = "DirectHTTPChannel0"
correlationId = "24CD6542-F141-1A05-BA35-00A108CB30A0"
destination = ""
extendedData = (null)
faultCode = "Channel.Security.Error"
faultDetail = "Destination: DefaultHTTP"
faultString = "Security error accessing url"
headers = (Object)#2
messageId = "CC123DF0-0E6C-05FF-7894-00A109676283"
rootCause = (flash.events::SecurityErrorEvent)#3
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#4
bytesLoaded = 0
bytesTotal = 0
data = (null)
dataFormat = "text"
eventPhase = 2
target = (flash.net::URLLoader)#4
text = "Error #2170: Security sandbox violation:
http://localhost:3000/MYCIMS/flex_bin/Design.swf
cannot send HTTP headers to
http://myip/MyServer/AdminWS.asmx."
type = "securityError"
timestamp = 0
timeToLive = 0
I have put crossdomain.xml file in the root of the localhost
and made every changes possible in the crossdomain.xml file but the
application is not running.
Please somebody provide an effective solution, I have spend
lots of time to resolve the problem but its not being....
Thanks in advance
Gopi Saini
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
My Flex application calls a DotNet Web service and throws a security error despite the presence of the crossdomain.xml. I tried all kinds of suggestions until this one worked. Apparently just specifying the allowable domains and headers is not enough. The extra settings in this file must be the trick.
Views
Replies
Total Likes
Hi,
guyz can you please read my posts at http://forums.adobe.com/message/3986954#3986954
i am using flash builder using httpservices to call twitter and it works fine if am testing on localhost but once i close the flash builder it generates error and stop showing tweet message
error am getting i.e.
============
local error i.e. http://localhost/fb/cg7/
============
Fault 0 (Error):
[Server.Error.Request]
FAULT MESSAGE: faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:http://localhost:37813/1/users/show.xml?screen_name=charagh?hostport=a pi.twitter.com&https=N&id=7DC25F2C-E9EC-2E95-1389-34C9A2061624"]. URL:http://api.twitter.com/1/users/show.xml?screen_name=charagh'
FAULT DETAILS: Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:37813/1/users/show.xml?screen_name=charagh?hostport=a pi.twitter.com&https=N&id=7DC25F2C-E9EC-2E95-1389-34C9A2061624"]. URL: http://api.twitter.com/1/users/show.xml?screen_name=charagh
FAULT STRING: HTTP request error
============
online error i.e. http://charag.com/fb/cg7/
============
Fault 0 (Error):
[Channel.Security.Error]
FAULT MESSAGE: faultCode:Channel.Security.Error faultString:'Security error accessing url' faultDetail:'Destination: DefaultHTTP'
FAULT DETAILS: Destination: DefaultHTTP
FAULT STRING: Security error accessing url
i placed crossdomain.xml
i.e.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFile.xsd">
<allow-access-from domain="charag.com"/>
<allow-access-from domain="*.charag.com"/>
<allow-access-from domain="a1.twimg.com"/>
<allow-access-from domain="*.twitter.com"/>
<allow-access-from domain="twitter.com"/>
<allow-access-from domain="api.twitter.com"/>
<allow-access-from domain="search.twitter.com"/>
<allow-access-from domain="static.twitter.com"/>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="a1.twimg.com"/>
<allow-http-request-headers-from domain="*.twitter.com" headers="*" secure="true"/>
</cross-domain-policy>
Views
Replies
Total Likes
It could be that the error,"Security error accessing url" faultCode="Channel.Security.Error" is thrown when the web service to be accessed is not of the same protocol. It worked for me when the web service was published on the same protocol as the request.
I tried to resolve the issue by modifying the cross-domain.xml in the root of iis with allow-access-from domain, but could not resolve.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies