Solved

IIS 6.0: Images with no file extension

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

Accepted Solution

by:
tonyhall_mcse earned 500 total points
ID: 10818649
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

867 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now