55

While I do not see any functionally or jquery UI elements affected by this, but when I access my asp.net mvc web page the chrome developer console is logged with a bunch of error messages like so:

Resource interpreted as image but transferred with MIME type application/octet-stream.

All of the warnings are for jquery UI images (though I don't have any custom images on there so I don't know if it's jquery UI only). All the jquery images still load correctly.

Does anyone have any insight on why this is happening?

Val
  • 2,291
  • 7
  • 34
  • 63
KallDrexx
  • 27,229
  • 33
  • 143
  • 254

1 Answers1

95

Are you running your site from Visual Studio's built-in web server? Apparently, you don't have much control over the MIME types in that environment (see this). I was seeing the same behavior and was starting to stress about it before finally realizing that I wasn't even looking at the IIS-hosted application.

Sudarshan
  • 18,140
  • 7
  • 53
  • 61
egoodberry
  • 2,746
  • 2
  • 26
  • 29
  • Yep this is all when using the VS's built-in web server! Thanks! – KallDrexx Jun 08 '10 at 18:47
  • 11
    I had the same issue with `.png` files. IIS defaults to sending the correct MIME type for them, so just ignore the warning on the ASP.NET Development Server. Note that this highlights it's worth testing your app in IIS as well! – Drew Noakes Aug 30 '10 at 13:50
  • Is there any advantage to using the development server instead of just running a local IIS and using that in Visual Studio? – KallDrexx Aug 30 '10 at 14:46
  • 4
    Simplicity, if you are referring to the Cassini web server. No setup, no virtual directories, just F5. – egoodberry Aug 30 '10 at 14:56
  • to solve the lame-ness of Cassini (Dev Server) & the elevated privileges required for IIS, Microsoft created IIS Express, which is very close to a real IIS, but simpler to setup & you don't need to run VS as administrator to use it. – Benja May 15 '12 at 22:04