Solved

How can I configure IIS to allow (open) *.dat files on web page?

Posted on 2008-06-12
3
1,136 Views
Last Modified: 2010-04-21
I have upgraded servers and in the process of transferring my application to the new server. The web server runs our web site and an online database. Users can search for specific records and download the data for later analysis. We have two formats, pdf and dat files. The PDF works fine. However, the new site will not open the *.dat file.  I can see where the dat file is being created and can go to the folder and open it directly. Also, when I hover the mouse over the button, I see the correct link. However, when I click on the link it takes me to the message "page cannot be displayed." There must be a setting in IIS that allows certain extensions to be open.
0
Comment
Question by:jneal0331
  • 2
3 Comments
 
LVL 2

Expert Comment

by:worldinchaos
Comment Utility
I'll assume you are using IIS 6, but either way, most IIS will have this option.

What you need to do is go to the IIS Admin section, and drill down to your default website, or the website which you want to make this change on.  Then right-click, and select properties.  After that, select the HTTP Headers tab.  The bottom option area is called MIME Map.  The button there is called 'File Types'.  Click it and fill in the boxes.  If you just want to be able to read the text of a dat file, I believe you need to associate that file as a text type file.  I believe that means that you type the .DAT part in the associate extension, and then type 'Text' in the MIME content type.  I will check to make sure in a bit, but this is definitely the direction you want to head.
0
 
LVL 2

Accepted Solution

by:
worldinchaos earned 500 total points
Comment Utility
Yep, I'm pretty sure that was right.  The content type you want to select, if this is the case, is "text/plain".

The following website lists plenty of other content types.
http://www.webmaster-toolkit.com/mime-types.shtml
0
 

Author Closing Comment

by:jneal0331
Comment Utility
well, perfect answer for this question I asked. However, it didn't have the results I hoped for. I will post a new questions soon.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 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

11 Experts available now in Live!

Get 1:1 Help Now