Solved

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

Posted on 2008-06-12
3
1,137 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sharepoint Home Page (companyweb) blank 3 70
Webserver access problem 5 68
Moving web servers into a DMZ? 3 46
http to https 3 39
A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

914 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

19 Experts available now in Live!

Get 1:1 Help Now