Select to view content in your preferred language

after v2.5 upgrade: ???Error #2124: Loaded file is an unknown type.???

1319
6
Jump to solution
03-22-2012 11:01 AM
AshleyOwens
Emerging Contributor
After upgrading from ArcGIS Viewer 2.1 to 2.5, I get error ???Error #2124: Loaded file is an unknown type.??? for any HTML file I attempt to load (such as help or legend files). Has anyone else experienced this?

Thank you,
Ashley
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   That's what I was afraid of... And you are saying this exact setup worked in 2.1?... You need to look at the link widget:

http://www.arcgis.com/rc/item.html?id=5e4717fe1bb247f89b9092308e569c30

What you are attempting to do will not work...

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote) as shown below:

View solution in original post

0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   What do you mean?... When you load HTML files in what?
0 Kudos
AshleyOwens
Emerging Contributor
Sorry...when I'm requesting them inside my Flex Viewer application, such as clicking on a menu item for our legend.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   I just need a little more detail... When you say menu Item you mean what exactly?
0 Kudos
AshleyOwens
Emerging Contributor
In our config XML file, we have
<widgetgroup label="Help" icon="assets/images/i_help.png">
    <widget label="Help"   left="100" top="90" 
                icon="assets/images/i_help.png"
                config="Link"
                url="assets/help/TIGERHelp1.html"/>
    <widget label="Legend"   left="100" top="90" 
                icon="assets/images/i_resources.png"
                config="Link"
                url="assets/legend/legend.html"/>
    <widget label="Contact"   left="100" top="90" 
                icon="assets/images/icon_contact.png"
                config="Link"
                url="cmt.html"/>
</widgetgroup> 

Clicking any of these causes "Error #2124: Loaded file is an unknown type." I can load each of these HTML files if I go to the URL directly, and not through our application.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   That's what I was afraid of... And you are saying this exact setup worked in 2.1?... You need to look at the link widget:

http://www.arcgis.com/rc/item.html?id=5e4717fe1bb247f89b9092308e569c30

What you are attempting to do will not work...

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote) as shown below:
0 Kudos
AshleyOwens
Emerging Contributor
I've successfully implemented your Link widget.  Thanks so much Robert. You rock!!
0 Kudos