Solved

How to trouble-shoot  NT4 for ASP setup ?

Posted on 2001-07-27
7
246 Views
Last Modified: 2012-05-04
Hi,

i have a error-free sample ASP codes (attached) which works fine on someone's NT4:
- InetPub\wwwroot\Order.htm
- InetPub\scripts\Response.asp

However, on my NT4, i use Netscape to open Order.htm. When i click "SUBMIT" and Response.asp is supposed to be shown, nothing happens on my screen.

The same things happen when i use IE5.0. Nothing happens on the screen when i click "SUBMIT" in Order.htm. But i know Response.asp is being opened by the browsers.

My IIS(HTML) shows the Directories for Scripting is "InetPub\scripts" and for WWW is "InetPub\wwwroot". And, the login username in IIS(HTML) is Anonymous.

I have also tried login as "Anonymous".  

How could i trouble-shoot my NT4.0 for my ASP setup ? Is there a sample asp scripts in IIS(HTML) ?
 
Thanks.


---------------- Order.htm -------------------------

<HTML>
<HEAD><TITLE>Order Form</Title></Head>
<BODY>
Please give us some information, then click Submit.
<FORM METHOD=POST  Action=response.asp>
First Name: <INPUT NAME=fname SIZE=25><P>
Last Name: <INPUT NAME=lname SIZE=25><P>
Title:
<INPUT NAME=title TYPE=RADIO VALUE=mr>Mr.
<INPUT NAME=title TYPE=RADIO VALUE=ms>Ms.
<HR><INPUT TYPE=SUBMIT><INPUT TYPE=RESET>
</FORM>
</BODY>
</HTML>

---------------- Response.asp ---------------------

<HTML>
<HEAD><TITLE>Response Form </TITLE></Head>
<Body>
<%Title = Request.Form("Title")
LastName = Request.Form("lname")
If LastName = "" Then %>
Invalid Data Entry !
<% Else %>
Thanks for placing an order
<% If Title = "mr" Then %>
Mr. <% = LastName %>.
<% ElseIf Title="ms" Then %>
Ms. <% = LastName %>.
<% Else %>
<% = Request.Form("fname") & " " & LastName %>.
<% End If
End If %>
</BODY>
</HTML>


0
Comment
Question by:collinng
7 Comments
 
LVL 7

Expert Comment

by:John844
ID: 6328245
sounds stupid, but try changing
<HEAD><TITLE>Response Form </TITLE></Head>
<Body>

to
<HEAD><TITLE>Response Form </TITLE></HEAD>
<BODY>

netscape is very picky about everything.
0
 
LVL 7

Expert Comment

by:John844
ID: 6328267
does the browser just show a blank screen?  if so verify that the html is in the source.  If it is then make sure that all of your html tags are closed, meaning for every tag like <HTML> you have a matching closing tag </HTML>.


Or is the problem that the form is not submitted?

if your page shows exactly what your asp contains including the <% ...%> items, then you have a problem with your asp.dll.  To fix that problem you can reinstall IIS.
0
 
LVL 3

Expert Comment

by:MikeRenz
ID: 6328301
seems like your IIS just isn't set up with execute permissions on the directory you are putting your .asp files.  Open up your MMC (microsoft management console) and check the permissions on the different directories of your website.

Also...you MUST access the web page through a virtual path...not through a file path.  So you cannot just open the html file from windows explorer, becuase it'll use a regular path such as "c:\inetpub\wwwroot\order.htm"  Instead you need to use a path such as:

http://localhost/order.htm

and then the webserver will know that you are accessing the file and will process the .asp accordingly.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 10

Expert Comment

by:KenAdney
ID: 6328302
Or you could just make it simpler, couldn't you?  In lines 10-16 it could read:

<%= Title %> <%= Lastname %>
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6328376
Try this;

<%
Title = Request("title")
LastName = Request("lname")
...
0
 

Author Comment

by:collinng
ID: 6328815
Qn Owner here...
Just to update after above comments...i tried changing to Title = Request("title"), or using path name not file name.  There is still the same msg (below)

I realized IE5.0 and Netscape4.01 display the same error msg "Http 501 not implemented / not supported".

Just fyi. Any comments ? Thanks in advance.
0
 
LVL 5

Accepted Solution

by:
dgorin earned 100 total points
ID: 6330037
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

9 Experts available now in Live!

Get 1:1 Help Now