IIS 7中没有Mime Types选项 [英] No Mime Types Option in IIS 7

查看:935
本文介绍了IIS 7中没有Mime Types选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS中遇到了一个问题,即我已经安装了一个使用.NET运行的Web应用程序,但是当您导航到该应用程序时,不会显示任何图像并且未使用CSS,因此页面是完全未格式化的.

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 used, so the page is completely unformatted.

对此我感到很困惑,但是我想知道这是否与允许的MIME类型有关,所以当我发现MIME类型选项不存在时,将检查哪些允许的类型.

I am stumped by this but I was wondering if it could be something to do with permitted MIME types, so was going to check which ones were permitted when i noticed tghat the MIME types option is not present.

当您单击站点时,可以在IIS部分的另一台服务器的IIS中的IIS中看到它,但是该服务器上不存在它.有谁知道:

I can see it in IIS on another server in the IIS section when you click on a site, but it is just not present on this server. Does anyone know:

a)为什么不在那里以及如何找回它 b)是否可能是未检测到CSS并且没有显示图像的问题的原因?

a) Why it is not there and how you can get it back b) If it could be the cause of the problem whereby the CSS is not detected and no images are shown?

我希望我已经正确解释了这一点,但是很乐意向愿意提供帮助的任何人提供更多信息!! :-)

I hope that I've explained this properly but will be happy to provide any more information to anyone that is happy to help!! :-)

谢谢

推荐答案

要解决缺少的(空白CSS)和图像问题,您需要安装Static Content Role.

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

  1. Start-> Administrative Tools-> Server Manager
  2. Roles下选择Web Server
  3. 第三个选项在Common Http Features下是Static Content
  4. 安装
  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.

如果需要添加特定的MIME类型,则可以使用新安装的MIME Types功能.重新启动IIS Manager之前,不会显示新的Role.

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.

这篇关于IIS 7中没有Mime Types选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆