up vote 0 down vote favorite
share [g+] share [fb]

I have a text file that I am trying to browse to using the browser http://files.mydomain.com/test.txt and I get a:

HTTP Error 404.0 - Not found

I double checked and the text file does exist. When I add a test.htm file, I have no issues.

Can someone help?

link|improve this question

67% accept rate
feedback

2 Answers

up vote 0 down vote accepted

Couple quick ideas:

Ensure "txt" is a known/allowed MIME type (text/plain) in IIS - if it's not that will give you a 404.

Ensure the IUSRS account has read access to the file (although that should give you a 401 if not set).

link|improve this answer
feedback

You can try to add a http handler for"*.txt" extension on IIS 7.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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