Solved

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

Posted on 2008-06-12
3
1,154 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

705 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