0

I am newbie with MVC applications and building MVC3 applications, I am facing very strange behaviour with chrome, in that it is calling Index() method multiple time (12 times)! I have tried looking in the console window and it shows warnings about images (seen below).

enter image description here

There is no problem at all in Firefox and it is working as expected, but chrome is creating the above problem. Please help me to find possible solutions with chrome if you have encountered this problem. Also please help me to identify other possibilities that have to created this situation.

Update:

I have tired to watch request in debug and found some issue of requesting favicon.ico in with chrome as per below image

enter image description here

So reason was this now how can i avoid this request multiple time (if do not want to put favicon.ico)?

Community
  • 1
  • 1
Arun Rana
  • 8,426
  • 14
  • 67
  • 107

1 Answers1

1

My guess is that you are seeing this when you run the website on the ASP.NET Development Server. Basically, the dev server is not correctly configured to send the correct MIME type (which should be image/* where * is the image type - png, jpeg, etc.)

As far as I know, it's not a real big deal when you're doing your local development (and Chrome is more strict about telling you about it).

The reason you see it as many times as you do is you see it once for each image you are transferring on the page (which is your Index page).

Update You may want to look at some of the information at this Stackoverflow question.

Community
  • 1
  • 1
JasCav
  • 34,458
  • 20
  • 113
  • 170