views:

622

answers:

3
+3  A: 

This is actually just a standard web convention and works independently of Silverlight.

Begin by generating your icon file (you can use a site like this as a shortcut) and upload the icon file to your site root- giving it the name favicon.ico

Refresh the page (might need to + F5 to clear cache) and your icon should appear as desired.

Chris Ballance
I tried adding the favicon to different locations, but no luck so far. Which location actually IS my site root? I'm running the site locally at the moment.
@frances the folder which corresponds to / on your site. For example, if I go to `http://localhost/hello.aspx`, the folder `hello.aspx` is in would be the root.
Rex M
@Rex M: Tried that, didn't work. Maybe its different for Silverlight?
A: 

This might be helpful http://www.w3.org/2005/10/howto-favicon

Also, if you need to create a favicon it needs to be in the ".ico" format. Using photoshop you can create an icon, but you need a plugin to export to the favicon.ico format.

http://www.photoshopsupport.com/tutorials/jennifer/favicon.html

And you site root is where your very first homepage resides for example index.html or index.asp, or index.php.

On most web hosting plans there is a folder called "public_html" if you see a folder like this that is most likely your "root" folder.

Gordon Potter
A: 

Hmmm...

Putting the favicon in the root works in Firefox and Google Chrome, but not in Internet Explorer. Any thoughts on what might cause this?

EDIT: Found the error. IE accepts only .ico files. So by putting an icon called favicon.ico in my root folder, and adding these lines to my .aspx page, everything works:

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