Solved

IIS 6.0: Images with no file extension

Posted on 2004-03-30
8
2,107 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
8 Comments
 
LVL 4

Expert Comment

by:SurferJoe
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 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