Select to view content in your preferred language

Flex Viewer 3.4 Secure Service Logon Error

806
1
Jump to solution
08-08-2013 12:07 AM
DominiqueBerger
Emerging Contributor
Hi Guys

I am having a problem with using Secure Services with the Flex Viewer 3.4.

My scenario is that I have secured my ArcGIS Server Services and am using them in the flex viewer. When I navigate to the viewer in a browser it prompts for a logon (to be expected for my secuure services). I enter a valid usernamen and password however it fails with an Error #2048 which when I investigate with Firebug shows me a cross domain error.

So it appears that request to my crossdomain file is referenceing https://internal_PC_Name/crossdomain.xml  - this of course will fail as that name means nothing outside of my network.

[ATTACH=CONFIG]26564[/ATTACH]

If I try and navigate to the crossdomain file using the external name it works fine.

Has anyone got any ideas of how I can get that logon to reference the correct URL?

Thanks very much

Dominique
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Dominique,

   If in your main config.xml or anywhere in one of your widget xmls you are using the servers internal name then you will get the issue you are receiving. Always use your external fully qualified server urls when configuring the viewer.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

View solution in original post

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Dominique,

   If in your main config.xml or anywhere in one of your widget xmls you are using the servers internal name then you will get the issue you are receiving. Always use your external fully qualified server urls when configuring the viewer.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos