No Mime Types Option in IIS 7

前端 未结 3 1525
离开以前
离开以前 2020-12-15 17:43

I have a problem in IIS whereby I have installed a web applcation that runs using .NET but when you navigate to it none of the images are displayed and the CSS is not being

相关标签:
3条回答
  • 2020-12-15 17:55

    This is the answer for non-server users, I have Windows 10 and the comment of Phil (see answer below) worked for me:

    "And if you're on a non-server OS like Windows 8, do a search on the start page for "Turn Windows features on or off" and enable Internet Information Services -> World Wide Web Services -> Common HTTP Features -> Static Content"

    Feature settings screenshot:

    0 讨论(0)
  • 2020-12-15 17:59

    OK, under IIS manager on W2k8 I see MIME Types under "HTTP Features". If you don't see the MIME Types configuration option, then you may need to follow Junto's steps in the answer above to install support for static files in IIS.

    See enter image description here

    0 讨论(0)
  • 2020-12-15 18:12

    To solve the missing (blank CSS) and image issue, you need to install the Static Content Role.

    1. Start -> Administrative Tools -> Server Manager
    2. Select Web Server under Roles
    3. Third option down is Static Content under Common Http Features
    4. Install it

    Your static content will now be served.

    If you need to add specific MIME types then you can use the newly installed MIME Types feature. The new Role will not be shown until you restart IIS Manager.

    0 讨论(0)
提交回复
热议问题