[CLOSED] Resource interpreted as Image but transferred with MIME type text/plain

  1. #1

    [CLOSED] Resource interpreted as Image but transferred with MIME type text/plain


    I have several places in our code that reference icons by:
    <img src='icons/link_go-png/ext.axd'>
    This works just fine when testing
    • Within Visual Studio
    • On our Production Server (Window Server 2008, IIS 7.0)

    But recently we stood up a new testing server and it is not working:
    • On our Testing Server (Windows Server 2012 R2, IIS 8.5)

    This is only happening in Chrome (IE and Firefox are fine). When I look at the Chrome debugger the following information is show:
    Resource interpreted as Image but transferred with MIME type text/plain: "http://jdsdb1/jdsweb/icons/link_go-png/ext.axd".

    There is no difference in the web.config or code. Any thoughts?

    I can go into more detail if needed, but wanted to see if there was a quick answer.
    Last edited by fabricio.murta; Mar 22, 2016 at 11:18 PM. Reason: no user feedback for 7+ days
  2. #2
    Hello Chris!

    Your newer IIS installation is missing MIME Types settings, it is most likely.

    I think this ServerFault thread gives you good clues on how to double check the mime types are registered correctly to your app/pool and/or website: IIS 7.5 doesn't load static html pages.

    Notice the thread is for static pages but the reporter complains of the exact same problem you reported.

    If mime types are not set up incorrectly in app pool and/or website entry, it should be wrong in Web.Config. You may get full response with mime type (content/type) if you open the url you are linking (for the icon, for example) directly on your browser and then use developer tools' network monitor feature to grab request/response data when you open the link. This can also be done to the final page to inspect the actual resource reference result (either 404, or wrong mime type, etc...).

    I hope this helps! As you said yourself, it works on Visual Studio and on your current production server, so there's nowhere else to be at fault other than the new IIS server.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    I believe the MIME Types can be configured in the Web.config as well.
    Geoffrey McGill
  4. #4
    Thank you, I will take a look at this first thing in the morning.

Similar Threads

  1. Replies: 3
    Last Post: Jan 16, 2015, 12:15 PM
  2. Tabpanel in Viewport = Plain=true not working
    By Tbaseflug in forum 2.x Help
    Replies: 1
    Last Post: Oct 10, 2012, 11:33 PM
  3. [1.0] Image Command + Text Wrapping
    By mj.daly in forum 1.x Help
    Replies: 0
    Last Post: Apr 20, 2011, 9:21 AM
  4. [CLOSED] Image and text in button
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 17, 2009, 8:51 AM
  5. [CLOSED] ComboBox with image and text
    By jchau in forum 1.x Help
    Replies: 5
    Last Post: Oct 06, 2008, 3:07 PM

Posting Permissions