Select to view content in your preferred language

GeoRSS /Channel.Security.Error  Fault Info: Security error accessing url

2780
8
05-03-2011 11:16 AM
JeffAzevedo
Deactivated User
I can run this GeoRSS feed locally without any problems, but once I place it on the Server/IIS7 it gives the following errors:
http://www.box.net/shared/0eqe7uoi65

Running Locally without any problems:
http://www.box.net/shared/tjp82vczqu

Please enter a name for the bookmark.:Event Target: [object HTTPOperation]
Event Type: fault
Fault Code: Channel.Security.Error
Fault Info: Security error accessing url

I have a crossdomain.xml file that has never been a problem (it's basically open) so what could be causing this?

The RSS link:
http://inciweb.org/feeds/rss/incidents/
Tags (2)
0 Kudos
8 Replies
JeffAzevedo
Deactivated User
I used this crossdomain, and it still doesn't allow the RSS:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*"/>
</cross-domain-policy>

HttpFox:
(Request-Line) GET /crossdomain.xml HTTP/1.1
Host inciweb.org
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip, deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 115
DNT 1
Connection keep-alive
Cookie PHPSESSID=obaolrjj3vavlt94rsjg34onr4; __utma=216947913.1104977872.1304442833.1304442833.1304442833.1; __utmb=216947913.16.10.1304442833; __utmc=216947913; __utmz=216947913.1304442833.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

Any ideas?
0 Kudos
IvanBaehr
Deactivated User
Hi Jeff

I encounter exactly the same problem moving my GeoRSS_feed.xml from local machine to external server receiving the same error message:

Please enter a name for the bookmark.:Event Target: [object HTTPOperation]
Event Type: fault
Fault Code: Channel.Security.Error
Fault Info: Security error accessing url

I wounder if you found a soulution as I see no replies to the question raised a little more than one year ago. Hope someone may be able to help with suggestions.

I also have a crossdomain.xml located on the server hosting the flexviewer application.

Best,
Ivan Baehr
UNOSAT
0 Kudos
BjornSvensson
Esri Regular Contributor
I also have a crossdomain.xml located on the server hosting the flexviewer application.


Ivan, the crossdomain.xml file needs to be on the server with the feed, not on the server with the flexviewer application.

Jeff, where did you put the crossdomain file?  If the data is coming from http://inciweb.org/feeds/rss/incidents/, then the crossdomain file needs to be at http://inciweb.org/crossdomain.xml.

"This is most likely a cross-domain issue. This will happen if you are connecting from a Flash application to resources on another domain. Either have the application hosted on the same domain as the resource (usually the ArcGIS Server) or add a crossdomain.xml to your ArcGIS Server."
http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/FAQ/01m300000004000000/

Also see the API help for more details:
http://help.arcgis.com/en/webapi/flex/help/index.html#/Using_crossdomain_xml/017p0000001w000000/
0 Kudos
JeffAzevedo
Deactivated User
Thanks for the response.

I do not have a crossdomain file on the inciweb.org server. Since it worked locally, I figured there would be a way to make it work on the server, but I guess that's not going to happen.
0 Kudos
JeffAzevedo
Deactivated User
I have a hacked up way of achieving my goal (I think). This isn't elegant to say the least, and I haven't figured the last part yet, but I will post what I have done so far. (Maybe others will come up with the schedule task solution I'm attempting)

Using iMacros (http://www.iopus.com) I've come up with a way of grabbing the RSS source and coping it to the clipboard. This will do fine in my situation, as the RSS isn't updated often. I have a Task Scheduler instance set to run the iMacros script nightly and copy it to the clipboard. Now I'm looking for a way to paste the clipboard to the xml file sitting on IIS.

As I said it's not pretty, but it might spur some ideas. If you are interested in trying iMacros, here's the code I used for grabbing and coping the source code:
VERSION BUILD=7311339
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://inciweb.org/feeds/rss/incidents/
SEARCH SOURCE=REGEXP:"(?s)(.*)" EXTRACT="$1"
SET !CLIPBOARD {{!EXTRACT}}

Note iMacros is browser specific, and I'm using the IE version.
Use the modified target path to run the script with Scheduler or something similar:
"C:\Program Files (x86)\iOpus\iMacros\iMacros.exe" -macro #YourNamediMacro -noexit
0 Kudos
JeffAzevedo
Deactivated User
My access to our server is limited, so this solution is working great.

You will need iMacros (http://www.iopus.com/) to make this work.

The iMacros code:
VERSION BUILD=7311339
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://inciweb.org/feeds/rss/incidents/
SEARCH SOURCE=REGEXP:"(?s)(.*)" EXTRACT="$1"
SET !CLIPBOARD {{!EXTRACT}}
SAVEAS TYPE=TXT FOLDER=C:\inetpub\wwwroot\YourFolder FILE=YourXMLFile

Use Windows Task Scheduler to update the xml file and add this to the target path:
"C:\Program Files (x86)\iOpus\iMacros\iMacros.exe" -macro #YouriMacros

iMacros will auto close. If you prefer to see it open, add -noexit to the end of the target path.
0 Kudos
IvanBaehr
Deactivated User
Thanks for the response from Bjorn.

I solved my problem using a proxy on our server and setting <useproxy> true in the GeoRSS config. This way we avoid crossdomain on the feed server.

<?xml version="1.0" encoding="utf-8" ?>
<!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to.
       
        mustMatch: true to only proxy to sites listed, false to proxy to any site -->
<ProxyConfig mustMatch="true">
  <serverUrls>
    <!-- serverUrl options:
            url = location of the ArcGIS Server, either specific URL or stem
            matchAll = true to forward any request beginning with the url
            token = (optional) token to include for secured service
    -->
    <serverUrl url="http://<feed server name>/GeoRSSfeed.xml"
               matchAll="false"></serverUrl>
  </serverUrls>
</ProxyConfig>


Ivan Baehr
UNOSAT
0 Kudos
JohnKostelnick
Deactivated User
Ivan,

We're running into the same issue and are trying the steps that you provided. We've modified the config file for the widget for <useproxy> and have created the proxy file. Where did you place the proxy file once it is created? Also, is there a specific name that should be used for the proxy file for it to be recognized (ours currently is proxy.config)?

Thanks in advance for any help.

John
0 Kudos