Can't open ASP page in IE

I have a similar problem to Q1029312 and none of the answers to that help.

When I try and open an ASP page in IE5 I get asked if I want to open it or save it. I  can open an ASP page if I enter the address http://127.0.0.1/mypage.asp

I'm running IE5, IIS (the one that comes with NT Opt Pack 4), NT Server 4.0 with SP6.
schoonAsked:
Who is Participating?
 
absongConnect With a Mentor Commented:
Yes, if you want to view your ASP pages the way it would appear to other people (i.e. processed), you need to view it through HTTP protocol. That is:

   http://xyz/page.asp

xyz can be:
127.0.0.1 - local machine
localhost - local machine
<your true ip address> - your local machine as known to the outside world

you can find out your ip address by using winipcfg

---

Virtual directories are the same
so if you have a virtual directory called /cgi-bin/, you can view that directory through

   http://127.0.0.1/cgi-bin/


Hope this helps
0
 
MurdokCommented:
I think that you perhaps have one problem:

First you perhaps must add in the IIS configuration the Extension ASP to your group of documents.

0
 
schoonAuthor Commented:
Thanks.

Could you be a bit more specific about where and how to do this.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
absongCommented:
When you drag an ASP file from your C: drive to IE5, Windows tries to identify the file type by its extension. However, Windows does not recognize .ASP extension as a browser viewable extension, therefore it tells your IE5 that it is sending a unrecognized file to IE5, and IE5 asks you if you want to save it or download it.

When you open an ASP file through HTTP protocol, the request goes through IIS. IIS recognizes .ASP extension and convert it into a browser viewable format (i.e. append HTTP headers to it). This is why IE5 can view ASP files correctly if you use:

     http://127.0.0.1/mypage.asp
0
 
schoonAuthor Commented:
So does that mean I can only ever view ASP pages by typimg in http://127.0.0.1/page.asp?

And how do I look at pages in virtual directories?
0
 
schoonAuthor Commented:
Helped a lot. Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.