Solved

IIS 6.0: Images with no file extension

Posted on 2004-03-30
8
2,117 Views
Last Modified: 2009-07-22
We have thousands of JPEG and GIF images that are displayed in internal web apps. Many of these image files, however, does not have a file extension. On Windows 2000 (IIS 5.0) this was no problem - the image file was sent to the browser and the browser recognized and displayed all images correctly.

But on IIS 6.0, I find that files without extension (no associated mime type) are not allowed, so I get 404 - Not found for all these images. If I add .jpg to the file name I can see the image, so it's not a matter of rights.

Does anyone know how to instruct IIS 6.0 to also allow files without extension?
0
Comment
Question by:jetaasen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 4

Expert Comment

by:Greg Rowland
ID: 10715911
Interesting problem? I would never have believed it would work in the first place!

Searched Support.Microsoft.com product = IIS 6.0
Search string = allow files without extension

This article came up, currently unavailable?

      IIS 6.0 Does Not Serve Dynamic Content
       (555019) - When you request a dynamic content, from an IIS 6.0 Web server, and the services extension that is not being enabled on the Web server, you receive the following error message: HTTP Error 404 - File or directory not found.

0
 
LVL 3

Author Comment

by:jetaasen
ID: 10716552
Yes, as I said in my question - IIS 6.0 does not allow unknown mime types/file extensions. But you can add new and I have successfully loaded these images with custom extensions (like .xyz). But my question is: How do I allow files with no extension?
0
 
LVL 6

Expert Comment

by:BAlexandrov
ID: 10722024
I have tried to register . extension for image/jpeg and also examined metabase (configuration settings) of IIS6 - nothing for turning off this behaviour. Probbaly it will be easyer to rename them - from command prompt: ren *. *.jpg

HTH
Bojidar Alexandrov
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 2

Accepted Solution

by:
tonyhall_mcse earned 500 total points
ID: 10818649
0
 
LVL 6

Expert Comment

by:BAlexandrov
ID: 10820395
No this does not help! It is applicable only if you have extension to register.
0
 
LVL 2

Expert Comment

by:tonyhall_mcse
ID: 10820943
This part didn't work?

-----------------------------------------------------
If you want to serve all files regardless of the file name extension (for example, if you cannot predict all files that will be served), follow these steps to add a wildcard character mapping:

(Note You should only add the wildcard mapping to the IIS MIME map as a temporary solution during troubleshooting. After you have determined that a missing MIME type is the cause of the issue, remove the wildcard mapping and add the specific mapping for the MIME type that you need to serve.)
Open the IIS Microsoft Management Console (MMC), right-click the local computer name, and then click Properties.
Click MIME Types.
Click New.
In the Extension box, type an asterisk (*).
In the MIME Type box, type application/octet-stream.
Apply the new settings. Note that you must restart the World Wide Web Publishing Service or wait for the worker process to recycle for the changes to take effect.
-----------------------------------------------------

Sorry ... sounded like it was feasible.

TTFN
Tony
0
 
LVL 6

Expert Comment

by:BAlexandrov
ID: 10820997
Sorry, I did'nt read article till the end.

I have tried - this really works.
0
 

Expert Comment

by:bakelsbv
ID: 24913379
That really helps, only you don't have to do this for the whole webserver, but you can also do this per website of virtual directory.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question