Problems with bin release version.

3701
9
Jump to solution
06-15-2015 10:44 AM
EvelynHernandez
Occasional Contributor III

Hello,

I have an application that when i go to test through flex builder (web app) the first thing that it does is showing the IdentityManager to access to the rest service layers. It works perfectly in that way.

But when i export the bin release version of that app, i go to check it accessing through the Server and it gets me the following message:

The thing is, i dont have any error trying to accessing through the flex builder. It only happens when it is in the Web server.

I checked the rest service and its working well..

What can i do to solve this issue?

Thanks in advice

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Evelyn,

  Yep like I mentioned once you deploy your app you need to remove all internal URLs and switch to FQDN external urls.

View solution in original post

0 Kudos
9 Replies
EvelynHernandez
Occasional Contributor III

I have this error with the debugger:

SecurityError: Error #2048: Security sandbox violation: file:///C:/Users/ehernanr/Desktop/2015_AP_CHQ/Compilado/valpo/AP_VALPO.swf cannot load data from mapserver/8.

  at com.esri.ags.tasks::BaseTask/handleFaultEvent()

  at mx.rpc::AsyncResponder/fault()

  at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()

  at mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()

  at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()

  at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()

  at mx.rpc::Responder/fault()

  at mx.rpc::AsyncRequest/fault()

  at DirectHTTPMessageResponder/securityErrorHandler()

  at flash.events::EventDispatcher/dispatchEventFunction()

  at flash.events::EventDispatcher/dispatchEvent()

  at flash.net::URLLoader/redirectEvent()

0 Kudos
MattiasEkström
Occasional Contributor III

Sounds like a cross-domain problem, are you sure you're running the application from your webbserver? The error messages says file:///C:/Users/ehernanr/Desktop/2015_AP_CHQ/Compilado/valpo/AP_VALPO.swf cannot load data from .../MapServer/1?f=json

Have you made sure your crossdomain.xml is in place and configured correctly on the server http://gisred.chilquinta.cl:5555/

0 Kudos
EvelynHernandez
Occasional Contributor III

it is placed and it has the correct config. So what else can be the problem?

We just updated the arcgis server to the last version and we are getting this problem, what could it be?

0 Kudos
EvelynHernandez
Occasional Contributor III

Also, the Identity Manager that im using is not opening at the beginning, and i have placed it in the initialize function on the app.

The identity Manager windows only shows if i test the app in the flash builder, but when i export it for a webserver, i try to access it and then just the website opens , but it doesnt load the identitymanager window.

Why? idk the reason.

Here i have the examples:

I know that we change the html name but the thing is why the identitymanager doesnt show in the webserver but in the debug app does.

0 Kudos
EvelynHernandez
Occasional Contributor III

Nobody knows how to fix this problem?

I tried the same developing a code in JS and it works. Idk why the bin release version in flex doesnt show the identity manager and the debug version triggered by the IDE works....

Anyone can help me?

Thanks in advice

0 Kudos
EvelynHernandez
Occasional Contributor III

I still dont get the problem.... anyone knows something?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Evelyn,

    Are the URL in your app the fully qualified domain names (FQDNs)? When you are done debugging and developing your app you need to be using the FQDN URLs for your services (i.e. on my laptop I can use "http://calhalgis:3080/arcgis/rest....., but when I am ready to deploy I use http://gis.calhouncounty.org/arcgis/rest.....). I also even when developing and testing almost never run my app from the local drive (i.e. I:\Respaldo Disco WD\Adobe Flash Builder 4.7\AP_VALPO\bin-debug\AP_VALPO.html) I will setup a virtual directory for the app and use a real url (i.e. "http://mylaptop/Flex/AP_VALPO/AP_VALPO.html).

0 Kudos
EvelynHernandez
Occasional Contributor III

Yes, for example we use a test srv to try all the apps. But in flex when we run the app it start the local filesystem. (It always work well tho).

When we migrate the app to out test srv, like (""​) the IdentityManager doesnt show and the layers and map that we try to load dont show too.

It is just happening recently (idk if the update that we did to the 10.3v is the trigger).

Also, we just notice the external urls like () with the app work fine, but with internal ones doesnt show anything. ().

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Evelyn,

  Yep like I mentioned once you deploy your app you need to remove all internal URLs and switch to FQDN external urls.

0 Kudos