[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference gyro::internet_toolss

Title:Internet Tools
Notice:Report ALL NETSCAPE Problems directly to [email protected].rnet? Read note 448.L for beginner information.
Moderator:teco.mro.dec.com::tecotoo.mro.dec.com::mayer
Created:Fri Jun 25 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:4714
Total number of notes:40609

4510.0. "Netscape 3.0 doesn't render ASP files" by NETRIX::"[email protected]" (Jayant Hardikar) Thu Feb 27 1997 11:53

For the life of me, I cannot seem to connect to msnews.microsoft.com - or is 
this the wrong news server address? Or is it the firewall? Or do I need a
username/password?...

Anyway - I have IIS3.0 running on an NT4 server.  A file called test.asp in 
the web root comes up very nicely using IE3.0, but when trying to view it 
using Netscape 3.0 it comes up with the all-so-familiar "save to disk/open 
file" dialog box.  Why does a .ASP need a mime type? Am I doing something 
wrong?

Please help!

Thanks

Jay

[Posted by WWW Notes gateway]
T.RTitleUserPersonal
Name
DateLines
4510.1axel.zko.dec.com::FOLEYhttp://axel.zko.dec.comThu Feb 27 1997 12:074
	Try msnews-gw.pa-x.dec.com instead.

							mike
4510.2HOUBA::MEHERSDamian, http://bigbird.geo.dec.com/Thu Feb 27 1997 12:1949
    The browser should see nothing ASP related, so there must be something
    weird in the generated document ...
    
    	/Damian
    
    FWIW, try out:
    http://bigbird.geo.dec.com/asptest/who.asp
    
    (who.asp is below - not beautiful, or commented, but it does the job).
    
<html>
<head>
<title>Who has been accessing Bigbird?</title>
</head>
<body>

<%@ LANGUAGE = "JavaScript" %>
<!--#include virtual="/ASPSAMP/SAMPLES/Adojavas.inc"-->


<%
if(Session("dbConn") == null)
{
    Response.write("A New User!<P>");
    Session("dbConn") = Server.CreateObject("ADODB.Connection");
    Session("dbConn").open("islogs");
    Session("ipInfo") = Server.CreateObject("IPINFO.INFO");
}

accessList = Session("dbConn").Execute("select * from lq") ;
Response.write("<table border=2>");
while(! accessList.eof)
{
	Response.write("<tr>");
	Response.write("<td><A HREF=\"http://www-rle.zuo.dec.com/cgi-bin/info_address?TCPIP=ipaddr&SEARCH=");
//        Response.write(Session("ipInfo").toName(accessList("ClientHost")) + "\">");
        Response.write(accessList("ClientHost") + " \">");
        Response.write(Session("ipInfo").toName(accessList("ClientHost")) + "</a></td>");
//		Response.write("<td><" + Session("ipInfo").toName(accessList("ClientHost")) + "</td>");
	Response.write("<td>" + accessList("Expr1") + "</td>");
	Response.write("<td>" + accessList("target") + "</td>");
	Response.write("</tr>");
	accessList.MoveNext();
}
Response.write("</table>");
accessList.close();
%>
</body>
</html>
4510.3works on yours...NETRIX::&quot;[email protected]&quot;Thu Feb 27 1997 12:4919
Thanks for replying!  Yes - my netscape browser works nicely on yours.  My
test file is simply like

<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
test
</BODY>
</HTML>

try it at stage.ako.dec.com:90/test.asp

Any suggestions?

Jay

[Posted by WWW Notes gateway]
4510.4KELVIN::VILCANSThu Feb 27 1997 17:3012
    
    re: last
    
    	In explorer "file manager", check if the .asp extension is being
    interpeted as a browser file like your other .htm extensions. The new
    notepad likes to add double extensions, and the resulting .asp file may
    have a hidden .txt extension or something else.
    
    Note: Looking at your example, there is no "asp" commands in there, so
    the browser probably doesn't know its "htm" or "asp".
    
    								=Paul=
4510.5Error code 406, not 404 check EXECUTE access in IISHOUBA::MEHERSDamian, http://bigbird.geo.dec.com/Fri Feb 28 1997 03:3120
    
    One handy way of finding out what a Web server is sending back is to
    telnet to the machine - if you are using Windows then start up the
    telnet util, enable local echo in the options, and connect to your
    machine, specifying the appropriate port (in your case 90), then send
    the commands that your browser would be sending
    GET /test.asp HTTP/1.0
    Followed by newline, newline (second new line terminates the headers). 
    The message that is being returned seems to be:
    HTTP/1.0 406 No acceptable objects were found
    Content-Type: text/html
    
    <body><h1>HTTP/1.0 406 No acceptable objects were found
    
    Check that test.asp really is in your Web server's home directory and
    that you have enabled execute access on that directory (inside IIS
    config).
    
    	Good luck,
    		/Damian
4510.6teco.mro.dec.com::tecotoo.mro.dec.com::mayerDanny MayerFri Feb 28 1997 08:527
>    GET /test.asp HTTP/1.0

	Note that it's important to include the HTTP/1.0 in the statement
  otherwise you won't get all the information in the header that you may
  find useful.

		Danny
4510.7Re: Netscape 3.0 doesn't render ASP filesQUABBI::&quot;[email protected]&quot;Dave CrowleyWed Mar 05 1997 23:5948
Jayant Hardikar <[email protected]> wrote in article
<[email protected]_tools>...
> Title: Netscape 3.0 doesn't render ASP files
> 
> Anyway - I have IIS3.0 running on an NT4 server.  A file called test.asp
in 
> the web root comes up very nicely using IE3.0, but when trying to view it

> using Netscape 3.0 it comes up with the all-so-familiar "save to
disk/open 
> file" dialog box.  Why does a .ASP need a mime type? Am I doing something

> wrong?
> 

Still seeing this problem?  Here's some ideas that might give you something
to go on.

1. ASP files need to be executed on the server side.  If the server doesn't
have 'execute'
access to the directory containing these scripts, the server feeds 'em as
plain
text to the client -- where the familiar "save/open" dialog gets invoked.
Your symptom is commonly an indication of incorrect permissions.

2. But why the difference between NS and IE?  Could be a few things
worth checking.  It might be related to the difference between "Basic"
and "NT Challenge/Response" security when you set up the server.
Challenge security can be used by IE, but a fetch by NS will fault and
generally
the user would be prompted for a username/password.  Is this fault handled
differently here?  Perhaps because the server can serve the "read" but not
"executed" page?  Dunno.  Did you set up for Challenge/Response?  Are
your ASPs in a READable directory?

Things to keep in mind: 
- Keep ASPs and HTMs in separate directories, with ONLY the 
appropriate permissions.  I've seen this FAQ'd and README'd a number
of times in ASP and VinterDev, and it seems worth heeding.
- If you're going to use Challenge/Response security, expect different
behavior in NS vs IE when touching secure files.

==========================================
dave crowley
[email protected]


[posted by Notes-News gateway]