Favicon

Discussion in 'ASP.NET 2.0' started by blueprintpm, Feb 8, 2007.

  1. I have a valid favicon.ico in my root directory. This is the mystery: if I go to my alternate URL the favicon works. But the 'regular' URL doesn't show the favicon.

    Any thoughts?? Thanks in advance

    Ali Ibarguen
    BluePrint PM, LLC
    blueprintpm.com
     
  2. If a new application instance is being created make sure it exists in both roots.


    btw, are youdeclaring it in the page head each time?
     
  3. I'm somewhat of a newbie. Where would I see both roots? If I ftp into the DASP site, I see the favicon file in the root.

    I don't declare it anywhere in the code. My understanding was that it just had to exist in the root directory of the application. Could you give me an example of declaring it?? Thanks very much for the help - Ali

    Ali Ibarguen
    BluePrint PM, LLC
    blueprintpm.com
     
  4. You can place the favicon at any point there is an application but you especially need one at the site root.

    Then:
    <head>
    <link rel="SHORTCUT ICON" href=http://www.mydomain.com/favicon.ico>
    <title>Site Title</title>
    </head>

    note: 16 x 16 pixel bitmapnamed favicon.ico
     
  5. The same thing is happening to me. The alternate url works fine, but the regular one does not. Even with the <link...> tag, it does not show up. The alternate url works with no tag, only the favicon.ico in the root.

    Any ideas?
     
  6. I'm having this same problem.


    Anyone?
     
  7. I'm having the same problem, I tried the same method as decorativew but still no luck. It's a 32x32 .ico file. Works fine on my development server with both relative and absolute paths but neither method works on DiscountASP :confused:

    EDIT: Actually it works fine in IE7 with either relative or absolute paths, even pages in subfolders with no icon set in the HTML show the favicon, but it doesn't work at all in Firefox...
     
  8. Joseph Jun

    Joseph Jun DiscountASP.NET Staff

    I'm not sure which version of Firefox you're currently running but I've noticed the weird problem that Firefox 3.0.7 and 3.0.8 have been displaying with the icon.

    The only solution that I've come across so far was to load the favicon.ico file directly through Firefox and then it would update the icon used for the site that I had bookmarked.

    For example, in my bookmarks, I have http://espn.go.com/ saved for ESPN but previously it did not have an icon file associated with it. I removed the bookmark, I manually entered the path to the favicon.ico file by visiting http://espn.go.com/favicon.ico and then bookmarked the page.

    I'm not sure what changes were applied to Firefox in recent versions that have been causing problems with the icon but I've been experiencing the problem for a while.
     
  9. Yep seems to be a Firefox issue...works in both IE7 and Chrome, it's a few versions of Firefox that are having issues loading the icon from DiscountASP (3.0 being one of them)...oddly enough they have no problem with the WampServer2 host I do development on...
     

Share This Page