I have the following two lines in the head section in my masterpage:
<link r开发者_JS百科el="shortcut icon" href="/Content/Images/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/Content/Images/favicon.ico" type="image/ico" />
However, the favicon is not displayed in Internet Explorer (version 6, 7, 8). In Firefox and Safari the favicon works fine. I have even tried to replace href with the URL to my website (http://www......./Content/Images/favicon.ico) but that still does not work in Internet Explorer. Am I missing something?
Try this post http://weblogs.asp.net/nmarun/archive/2010/03/14/asp-net-mvc-2-throws-exception-for-favicon-ico.aspx
精彩评论