Expand my Community achievements bar.

SOLVED

Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Unable to load WSDL

Avatar

Level 1

[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

1 Accepted Solution

Avatar

Correct answer by
Level 1
Hi..



replace crossdomain.xml

if test success then apply to your security setting

---------------------------------

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM
"/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

<site-control permitted-cross-domain-policies="all"/>

<allow-access-from domain="*" to-ports="*" />

<allow-http-request-headers-from domain="*"
headers="*"/>

</cross-domain-policy>

---------------------------------

View solution in original post

23 Replies

Avatar

Former Community Member

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.

Avatar

Level 1

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>

Avatar

Former Community Member

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.