Select to view content in your preferred language

Error #2148 for Flex 3

1414
9
07-12-2012 07:17 AM
BenjaminViss
Deactivated User
Hi,

I've been trying everything in mulitple forums, but have not found a solution to this error.
Anyone who can help me would be great. Eventually, I want to add a favicon.ico to Flex 3.0. I added the following lines to the index.html, but since then its been giving me the error.


<link rel="SHORTCUT ICON" href="favicon.ico">
                <link rel="icon" href="https://community.esri.com/favicon.ico" type="image/vnd.microsoft.icon">

Regards,
Benjamin
Tags (2)
0 Kudos
9 Replies
RobertScheitlin__GISP
MVP Emeritus
Ben,
   This is all I have in my index.template.html file:

<link rel="shortcut icon" href="favicon.ico">


It has to go in the index.template.html file as this is the template that is used to build the actual index.html file when you do a release build.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos
BenjaminViss
Deactivated User
Hi Robert,

I have the index.html file only. No index.template.html.




Ben,
This is all I have in my index.template.html file:

<link rel="shortcut icon" href="favicon.ico">


It has to go in the index.template.html file as this is the template that is used to build the actual index.html file when you do a release build.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ben,

   So you are using the compiled Flex Viewer and not the uncompiled then? Can you attach your modified index.html for me to look at? Where in your sites directory structure is your favicon.ico?
0 Kudos
BenjaminViss
Deactivated User
Robert,
Yes, the compiled version (Flex Viewer 3). See the index.html  screenshot below.
The favicon.ico itself is in the flexviewer main folder, where the config.xml & index.html are also located.


[ATTACH=CONFIG]16012[/ATTACH]
Thanks!
Benjamin

Ben,

So you are using the compiled Flex Viewer and not the uncompiled then? Can you attach your modified index.html for me to look at? Where in your sites directory structure is your favicon.ico?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Bnejamin,

   When you remove the icon lines does your app function properly?
0 Kudos
BenjaminViss
Deactivated User
Robert,

Yes it does. It has been working fine all along (with or without incon line). The favorite icon is what I'm trying to get as modification. Also, I dont know if it matters, but when I double click and open the index.html, thats when I get the error code. But I can open my flex map no problem, no error. So something is not right when I try to add the favicon to the flexviewer.

I appreciate it.
Benjamin
0 Kudos
DasaPaddock
Esri Regular Contributor
Make sure /index.html is in your url when testing. If it's not, your web server may actually be serving the "default.htm" file. If it is, you'll need to make your changes there.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Benjamin,

   I would just add this one line to the head section of the html (notice the tag is closed here) and see what happens:

        <link rel="shortcut icon" href="favicon.ico" />
0 Kudos
BenjaminViss
Deactivated User
Thanks Guys,

It has not solved anything. I'll have to figure something out with internal support.

--UPDATE:

I was informed that I must also the copy the code to the default.htm file. So for those of you who are reading this. Paste the code in BOTH the index.html AND default.htm.

But I'm sure I was the only one who didnt know this :).
0 Kudos