Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2008-06-12
3
Medium Priority
?
1,167 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

604 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