Windows 2003 Web Edition - 404 errors on href that ends in .log

A

Aaron [SQL Server MVP]

Are you using URLScan or some other ISAPI filter on IIS? This can register
a 404 error if the request for the file is rejected for any reason (e.g.
permissions) because a filter can't utilize custom errors.

What program does windows say .log is associated with?

IIS basically has three common types of 404:

(a) a file extension that is not registered with IIS, disabled in IIS, or
not associated with a mime type. You can see the mime types in Control
Panel > Administrative Tools > IIS Manager, right-click the server name, hit
Properties, and click on the MIME Types... button. .log isn't listed on my
server by default, so unless you've explicitly listed it and something else
is going wrong, you will likely resolve your error by hitting New... and
adding .log with a MIME type of text/plain (if you want the browser to
display the .log file directly) or application/octet-stream if you want them
to be prompted to open it (which will open the file in the program *their*
system is registered to read .log files with) or save it to disk.

(b) the file really isn't there...

(c) the oddball rare error I mentioned above.


HTH
 
M

MarkP

Aaron,

you were right. I added a MIME type with the .log extension as text/plain
and this did the job.

Funnily enough I discovered this right before you posted your response.

Thanks for your effort.
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top