Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie question - ASP page doesn't finish

Status
Not open for further replies.

Soldano16

IS-IT--Management
Jul 19, 2002
11
CA
I'm using the standard beginner's "Hello world" first ASP page. I call that page from my home page. The ASP page starts to load but never finishes. No error messages.

I'm really new to this stuff - Thanks!

Eric
 
Here is the code from Frontpage 2002

I'm using IIS under Win XP Pro

I saved this page as an ASP page. I link to it from my home page. When I click the link on my home page my browser shows activity but never finishes.


<head>
<meta http-equiv=&quot;Content-Language&quot; content=&quot;en-us&quot;>
<meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 5.0&quot;>
<meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;>
<SCRIPT language=vbscript>

<title>First ASP page</title>
</head>

<body>



<%
response.write(&quot;Hello World!&quot;)
%>



<p> </p>
<p> </p>
<p> </p>
<p> </p>

</body>

</html>
 
Took out that tag.

I get a cannot display page message. Actually that's what I was getting before. I got mixed up between my home and office PC's

I have the same problem with this simple ASP on my home system running IIS under Win 2000 Pro except that's where it runs forever.

Thanks for all the help so far.

Eric


 
hmmm! everything in that code is fine. the only thing I can say is it's frontpage as usual messing things up/ thow it in the garbage. [lol]

do me a favor and try this.
open notepad
enter this code
<%
response.write(&quot;Hello!&quot;)
%>
save as hello.asp
and run it in IIS

if that works then it is frontpage and I haven't a clue because I thru frontpage away after using it for a day. Maybe someone that uses it here can assist in that.
if the things I said to do do not work then it may be IIS settings and we can go from there.
admin@onpntwebdesigns.com
 
I tried again but to no avail. I think I'll look at IIS setup a bit.

Thanks again!

Eric
 
You need just this peace of code
================================
<% Language=&quot;vbscript&quot; %>
<HTML
<HEAD>
<TITLE>First ASP page</TITLE>
</HEAD>
<BODY>
<%
response.write(&quot;Hello World!&quot;)
%>
</BODY>
</HTML>
================================
and name for this file. Check your IIS setting: go to Properties &quot;Documents&quot; tab and for default documents.
This file has to be on your web root directory (c:\inetpub\I hope this helps
 
I'm so confused. I've tried everything everyone here has suggested and still I get a blank page.

 
Are you sure you call your page with the good protocol ? I explain, : when typing the URL in your browser, you've got to have an adress starting with
Code:
&quot;[URL unfurl="true"]http://localhost/...&quot;[/URL]
in order for the ASP code to be proceceed by IIS. If you type an url starting with
Code:
&quot;file://...&quot;
none of your ASP instructions will be handled.

I'm not laugthing, sometimes the error is so huge that no one can see it. Water is not bad as soon as it stays out human body ;-)
 
<%@ Language=&quot;vbscript&quot; %>

You're missing &quot;@&quot; in your tag. Although that shouldn't make a difference.

Open up your browser. Cilick on Tools->Internet Options->Advanced. Then make sure the check box for &quot;Show Friendly HTTP error messages&quot; is off. Then try opening the page again and see if you get any errors, that would be of any use.

If that doesn't change anything, go into Settings->Control Panel->Administrative Tools->Internet Services Manager.

Right click on &quot;Default Web Site&quot; and a window should pop up giving you the actual IP address of the server that your asp page is sitting on. Make note of it.

Then click on the Home Directory tab. Make note of the &quot;Local Path&quot;. It should say, &quot;C:\Inetpub\ This is your default directory. Now close everything and get out of Control Panel.

Next, go into Windows Explorer and find out if your asp page is sitting in the &quot;Local Path&quot; If it isn't, that is probably your problem. Move it to that &quot;Local Path&quot;. Close Explorer.

Open up your browser and type in the physical path, now within the default directory, of your asp. It would be the IP address + the name of your asp page, ie, &quot; You should see your page now displayed.

Does any of this help you?
 
I'm at least learning how to track things a bit.

This is the message I get in the event viewer

The server failed to load application ''. The error was 'The specified metadata was not found.


This is what the code produced by Frontpage looks like -
I added in -

<% Language=&quot;vbscript&quot; %>

and

<%
response.write(&quot;Hello World!&quot;)
%>


Here is all the code


<% Language=&quot;vbscript&quot; %>
<html>

<head>
<meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 5.0&quot;>
<meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;>
<title>New Page 1</title>
</head>

<body>
<%
response.write(&quot;Hello World!&quot;)
%>
</body>

</html>
 
I think this may already have been pointed out but you need to make sure that the first line of your asp page reads:
Code:
<%@Language=&quot;vbscript&quot; %>
The '@' was missing from your code originally. Also try just using the basics to start with as follows:
Code:
<%@Language=&quot;vbscript&quot; %>
<html>
<head>
<title>New Page 1</title>
</head>
<body>
<%
Response.Write(&quot;Hello World!&quot;)
%>
</body>
</html>
If you copy the above code and save it as an asp file called test.asp it should work fine. It must be saved in the c:/inetpub/ folder which should be on your computer. To run the page open Internet explorer and type:
Let me know what happens! i love chocolate
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top