Select to view content in your preferred language

Flexviewer - Map not displayed when deployed

1653
9
05-14-2010 03:40 PM
ShaningYu
Honored Contributor
I used and customized ESRI's Flexviewer template.  The maps display in foloowing scenarios:
1) Flex Builder, click bin\debug\index.html
2) Flex Builder, click bin\release\index.html
3) IE:  file:///C:/Users/.../Flex%20Builder%203/Flexviewer1.3/bin-debug/index.html - where the Flexviewer1.3 project is in C:/Users/.../Flex%20Builder%203/
But not if I put the \bin-debug\ or \bin-release\ to any other location if I click the index.html.
Does anyone know how to fix it?  I mean if I copy the \bin-debug\ or \bin-release\ to other location, clicking the index.html will show the maps.  Thanks.
Tags (2)
0 Kudos
9 Replies
DasaPaddock
Esri Regular Contributor
Have you put a crossdomain.xml file on your ArcGIS server? You can use a tool like Charles, Fiddler or the Firefox Add-on HttpFox to see if a request is being made for crossdomain.xml and failing. Also, if you're using the debug Flash Player, you should see a security error warning if this is the issue.
0 Kudos
ShaningYu
Honored Contributor
Dear Paddock: 
Thanks for your response.  My project loads the open-source map layers (e.g. ESRI's).  Therefore, I can't put the crossdomain.xml file in ArcGIS Server.  It is true that when I use the debug Flash Player, I see a security error warning if this is the issue.   Is there a way to overcome the problem I reported?  Thanks.
Shaning
0 Kudos
DasaPaddock
Esri Regular Contributor
Can you copy and past the full error here?
0 Kudos
ShaningYu
Honored Contributor
See the attached image.  I clicked the Debug button, and got this error message.  Thanks.
0 Kudos
DasaPaddock
Esri Regular Contributor
This looks like a different error. Can you try using a tool like Charles, Fiddler or the Firefox Add-on HttpFox to see what requests are being made and if any are failing?
0 Kudos
ShaningYu
Honored Contributor
Dear Paddock:
Per your advise, I downloaded Fiddler2 and started to use it.  I had no problem run
1) Flex Builder, click bin\debug\index.html
2) Flex Builder, click bin\release\index.html
w/ Result 200 in Fiddler's Window.
For case:
IE: file:///C:/Users/.../Flex%20Builder%203/Flexviewer1.3/bin-debug/index.html (where the Flexviewer1.3 project
is in C:/Users/.../Flex%20Builder%203/), the map display well but no item displays in Fiddler window.
For other cases:
IE: file:///C:/Users/.../Flex%20Builder%203/Flexviewer1.3/bin-release/index.html
of IE: file:///C:/OtherFolder/.../bin-debug/index.html
No map is displayed and no item displays in Fiddler window.
Thanks for your attention.
0 Kudos
DasaPaddock
Esri Regular Contributor
Instead of running it from C:\..., can you try deploying it to a web server?
0 Kudos
ShaningYu
Honored Contributor
Instead of running it from C:\..., can you try deploying it to a web server?


Thanks for your advice.  I put the \bin-release\ folder under C:\Inetpub\wwwroot\ and then click the index.html.  But the map is still not displayed.  Did I do something wrong since I don't know how to setup the webservice?  Thanks.
0 Kudos
DasaPaddock
Esri Regular Contributor
Are you running it using a http://... url? You may need to contact ESRI Support to get more help with the details required to configure this.

http://support.esri.com
0 Kudos