ArcGIS for flex #2048 Security Sandbox conflict solution

Source: Internet
Author: User
Securityerror: Error #2048: Security Sandbox conflict:

The problem is: when the program is not released, it runs without errors. However, when the program is released, the access error occurs, prompting securityerror: Error #2048: Security Sandbox conflict: http: // localhost/xx.swf cannot load data from http: // localhost/ArcGIS/rest/services/mapserver.

In the installation. net ArcGIS, there is a crossdomain under c: \ Inetpub \ wwwroot \ ArcGIS \ rest. XML: copy the file to the directory c: \ Inetpub \ wwwroot.

The crossdomain. xml file contains the following content:

<? XML version = "1.0"?>
<! Doctype cross-domain-Policy System "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<Cross-domain-Policy>
<Allow-access-from domain = "*"/>
<Allow-http-request-headers-from domain = "*" headers = "*"/>
</Cross-Domain-Policy>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.