p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 11th, 2004, 05:45 AM
Friend of Wrox
Points: 1,038, Level: 12
Points: 1,038, Level: 12 Points: 1,038, Level: 12 Points: 1,038, Level: 12
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2004
Location: Alhambra, ca, USA.
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default Http://localhost/xxx/xxx/xxx.aspx Question

This is a basic question but I can't find any literature on it:

When I use the browser to run somepage.aspx , localhost refers to the IIS (I think).
Do I have to put the file in inetpub/wwwroot folder for it be accessed as localhost?

Can I put the file on the C: drive then make the folder containing the somepage.aspx a virtual folder but still call the localhost?

The confusion is: When I make the folder into a virtual folder in the IIS I get that global icon. Does this make it reside in the localhost?

Do I have this all wrong?

What does localhost truely mean?

Thank you so much.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old June 11th, 2004, 07:33 AM
Friend of Wrox
Points: 2,056, Level: 18
Points: 2,056, Level: 18 Points: 2,056, Level: 18 Points: 2,056, Level: 18
Activity: 21%
Activity: 21% Activity: 21% Activity: 21%
 
Join Date: May 2004
Location: India
Posts: 589
Thanks: 0
Thanked 22 Times in 22 Posts
Default

When you use the browser to run somepage.aspx , localhost refers to the default directory which is mapped in your harddisk as localhost.

Do I have to put the file in inetpub/wwwroot folder for it be accessed as localhost?

** This is default, but you can modify this.

Can I put the file on the C: drive then make the folder containing
the somepage.aspx a virtual folder but still call the localhost?

** You can create folder at some other location and call it as localhost/your folder (For this you need to map virtually).

Check the following article :

http://www.developer.com/net/asp/art...0917_1588231_2

hope this helps...




Om Prakash
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old June 11th, 2004, 09:22 PM
Friend of Wrox
Points: 1,883, Level: 17
Points: 1,883, Level: 17 Points: 1,883, Level: 17 Points: 1,883, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

localhost is a TCP/IP alias name for your local PC. It maps to IP address 127.0.0.1.

The book makes the assumption that you want to run the web site on your own computer.

IIS has it's own directory structure that's visible from the web. The "virtual root" directory is the one that is accessed from the web as http://localhost/.
This does not refer to your root folder on drive C. Instead, IIS lets you specify the actual directory on your hard disk that will map to the virtual root.

By default, c:\inetpub\wwwroot will be the directory on your hard disk that maps to http://localhost/.

ThePhile is not set up to run from the virtual root directory. Instead, they want you to set up another virtual directory named "ThePhile" or "ThePhileVB" that will map to the appropriate directory on your hard disk.

This book isn't a good "first book" to study on ASP.NET. There are a lot of assumptions made along the way. You might want to pick up an intro book on ASP.NET before you try to tackle this one.

Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
parent.frames.xxx how to add text? and Javascript How-To 0 July 18th, 2008 09:12 AM
xxx is not a member of 'Membership' bcr212 ASP.NET 2.0 Basics 7 June 29th, 2006 10:41 AM
New option("xxx", "xxx") Ma7T Javascript How-To 3 August 3rd, 2005 09:42 AM
App.xxx ONLY via API - Help ! Peppiniello Pro VB 6 1 December 23rd, 2004 03:38 PM
Error while using messagebox.show("xxx") pavanp ASP.NET 1.1 1 August 17th, 2004 07:21 AM



All times are GMT -4. The time now is 03:30 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2010 Wiley Publishing, Inc