Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 11th, 2004, 05:45 AM
Friend of Wrox
 
Join Date: Jun 2004
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.



 
Old June 11th, 2004, 07:33 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 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
 
Old June 11th, 2004, 09:22 PM
Friend of Wrox
 
Join Date: Jun 2003
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





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 04:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.