Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 28th, 2005, 07:51 AM
ziby ziby is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 2 ziby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 35 sec
Reputation Power: 0
Question Novice in ASP , Pls help...

hi,
I am new to ASP so may be I have a silly question..but then it matters to me alot and
I shall be obliged if anyone can help me in this regard.

I installed ASP on my win 2000 prof m/c by uploading IIS. Now when I try to run ASP
Programs for displaying the content, I am able to do that. But when I try to display a user input
to the screen , it gives me "Page cannot be displayed"
Then localstart.asp comes up with the following message....
You do not currently have a default document set for your users. Any users attempting to connect to this site are currently receiving an "Under Construction page".

If I try to open http://localhost/localstart.asp then also i get the same message as above.
I have tried to set the default document by going into
my computer>>manage>>IIS> ....
still things are not falling in place, any help in this regard would be highly appreciated.
Regards,
Ziby

Reply With Quote
  #2  
Old May 28th, 2005, 10:40 AM
PhilCollins99's Avatar
PhilCollins99 PhilCollins99 is offline
The Constant Student
ASP Free Novice (500 - 999 posts)
 
Join Date: Aug 2004
Location: England
Posts: 914 PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 5 h 42 m 36 sec
Reputation Power: 28
Question IIS configuration???

It sounds as if you IIS isn't configured correctly.

I know you have said you have done this but please try again to make sure.

Open IIS.
Right click Default Website and select properties.
Select the Documents tab.
Click the add button and add the name of your initial document. (If you don't have one I will suggest something as as starting point)

Type Index.html in the Add Default Document Name window and click OK. (This is case sensitive)
Move this document to the top of the list and click OK.

Now create a document named Index.html (Case important)

For example purposes use the following as the content for Index.html.
Code:
<HEAD><TITLE>Hello World</TITLE></HEAD>
<HTML>
<BODY>Hello World!</BODY>
</HTML>

Save this file in the root of your WWWRoot directory. (C:\Inetpub\WWWRoot) (Usually)

Click START
Click RUN
type http://Localhost

Your page should open with Hello World as the title and Hello World! as the text.

Does this work for you?

If not restart IIS. Easyiest way to explain this is to reboot your PC.
(You can right click your PC name in IIS and select All task and then Restart IIS. I would shut down your PC and start it up again for completeness)
__________________
- Post your code
- Post your errors
- Be clear
- Be courteous
PLEASE...Finalise your thread with a solution or confirmation that the last advice worked or failed (We are here to help each other).

Reply With Quote
  #3  
Old May 30th, 2005, 01:30 AM
ziby ziby is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 2 ziby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 35 sec
Reputation Power: 0
Quote:
Originally Posted by PhilCollins99
It sounds as if you IIS isn't configured correctly.

I know you have said you have done this but please try again to make sure.

Open IIS.
Right click Default Website and select properties.
Select the Documents tab.
Click the add button and add the name of your initial document. (If you don't have one I will suggest something as as starting point)

Type Index.html in the Add Default Document Name window and click OK. (This is case sensitive)
Move this document to the top of the list and click OK.

Now create a document named Index.html (Case important)

For example purposes use the following as the content for Index.html.
Code:
<HEAD><TITLE>Hello World</TITLE></HEAD>
<HTML>
<BODY>Hello World!</BODY>
</HTML>

Save this file in the root of your WWWRoot directory. (C:\Inetpub\WWWRoot) (Usually)

Click START
Click RUN
type http://Localhost

Your page should open with Hello World as the title and Hello World! as the text.

Does this work for you?

If not restart IIS. Easyiest way to explain this is to reboot your PC.
(You can right click your PC name in IIS and select All task and then Restart IIS. I would shut down your PC and start it up again for completeness)

_____________________________FINISHED_____________ _________________________________

Thank you so much for the help sir but i guess it did not work for me.
I reinstalled the IIS and till the step http://localhost everything is working fine.
The hello world program is displayed correctly. Now when I type the following code in the Index.asp file.....
<html>
<%
dim cars
cars=Request.Form("cars")
%>
<body>
<form action="demo_radiob.asp" method="post">
<p>Please select your favorite car:</p>
<input type="radio" name="cars"
<%if cars="Volvo" then Response.Write("checked")%>
value="Volvo">Volvo</input>
<br />
<input type="radio" name="cars"
<%if cars="Saab" then Response.Write("checked")%>
value="Saab">Saab</input>
<br />
<input type="radio" name="cars"
<%if cars="BMW" then Response.Write("checked")%>
value="BMW">BMW</input>
<br /><br />
<input type="submit" value="Submit" />
</form>
<%
if cars<>"" then
Response.Write("<p>Your favorite car is: " & cars & "</p>")
end if
%>
</body>
</html>
I need to have the output printed back to the screen which user selected but it gives me
"Page cannot be displayed"

When I click on the local host hyperlink then it comes up with two webpages...one with the same error message and the other with welcome to IIS .

The problem is not that the page isn't printed but that the user input is not printed back to the screen.
Waiting for your reply sir,
Ziby

Reply With Quote
  #4  
Old May 30th, 2005, 03:51 AM
PhilCollins99's Avatar
PhilCollins99 PhilCollins99 is offline
The Constant Student
ASP Free Novice (500 - 999 posts)
 
Join Date: Aug 2004
Location: England
Posts: 914 PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 5 h 42 m 36 sec
Reputation Power: 28
The appears to be to display the text on screen.

Save the index.asp file in the wwwroot directory and type the following in your Internet Explorer address bar.

http://localhost/index.asp

This should work fine.

If you type http://localhost in your address bar this will use IIS to find the default documents as configured above. If there isn't a default document then the error will be displayed. If you manually put a file name on the end yourself, that is, you don't rely upon IIS to find it for you, then the computer will look in the wwwroot directory for the file.

So...

http://localhost/Mydirectory/mysubdirectory/index.asp

actually translates to: (for the computer)

C:/inetpub/wwwroot/Mydirectory/mysubdirectory/index.asp

BUT, typing this in the browser address bar will not work as the computer has not been instructed to run the correct engine to run your script and HTML.

All I did to test your script was copy your text to notepad, save the file as index.asp to the C:\inetpub\wwwroot directory, open up Internet Explorer and type http://localhost/index.asp in the address bar.

This loads your page fine.

If I wanted this to be my default page I would configure IIS as before but the document at the top of the list would be index.asp and not index.html.

Please note: If you experience problems with your code please post this in the correct forum. This helps you as there are more people viewing the coding forums. (You were correct to post here this time!)

Good luck and keep posting.
Comments on this post
ziby agrees: Person having excellent skills with incredible patience

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Novice in ASP , Pls help...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT