Question : File not found

I have a webpage that displays the contents of a directory.  In that directory are lots of text files that are displayed for download as links.  All works fine, except when any of the files are suffixed with 'hl7', the browser presents a "file not found error".

But if I rename any of the files to *.txt then it works like it should.

Why does IIS not serve up files with an 'HL7' suffix ?

Thanks

Answer : File not found

IIS does not have a MIME type for the extension and assumes the file should not be transferred.

Assuming IIS version 6 (options may vary in other versions):

start IIS manager (administrative tools)
server name (local computer)->properties->button Mime Types

create a new mime type (button new....)
extension: .hl7
mime type: text/plain

Restart IIS

Now the .hl7 file should be displayed as a text file in your browser


Random Solutions  
 
programming4us programming4us