Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
542 views
in Technique[技术] by (71.8m points)

iis 7.5 - No Mime Types Option in IIS 7

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.

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.

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) 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!! :-)

Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...