Solved

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

Posted on 2008-06-12
3
1,140 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
ID: 21768372
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
ID: 21768389
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
ID: 31466505
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
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 Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

808 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