Search code examples
asp.netfavicon

Favicon not visible when debugging but it does show up when deploying to sever


Our favicon won't show up while debugging, though it does show up when it has been deployed to a server. what could cause this behavior?

the code we use is:

 <head>
     <title>Our Application Name</title>
     <link rel="icon" 
       type="image/x-icon"
      href="favicon.ico"/> 
 </head>

the image is located in our root so it should have no problem finding it.

Edit

This is only when debugging in IE9, debugging in chrome or firefox shows the ico correctly


Solution

  • The problem was the following:

    the code was in the index page. but when debugging i put the start up page as the log on page. basically it didn't go past to the index page and skipped it.

    when on the server it passes the index page and gets redirected to the logon page. which is why i saw it on the server but not locally.

    The reason why i thought it worked on all browsers but IE is the same really. i went to the index page without going to the log-on page.

    It's more of a mistake of mine, but i hope people with the same mistake will find out what they're doing wrong faster now.