Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm mapping new file types in IIS 6 to the ASP.NET processor; for example the .gif image type.

IIS will see a GIF image doesn't not exist (e.g. http://www.example.com/NoExist.GIF ) and raise a 404 HTTP err before passing the request onto ASP.NET. I want to turn off the IIS file check so ASP.NET gets to handle the invalid request how it chooses.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Look at the setting "verify that file exists" in the extension or ISAPI mapping handling that extension. If that option is enabled, IIS will see that the file doesn't exist and handle the 404 itself before ASP is ever called. If the setting is not enabled, IIS will pass the request to ASP and let the filter handle it internally.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.