473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Confused over definition of "root" of site

I have defined a virtual directory and application called Test. The
directory is C:\inetpub\wwwroot\Test. I created a trivial page:

<%
response.write Server.Mappath("/")
%>

When I execute this page I get:

C:\inetpub\wwwroot\

but I was expecting to see:

C:\inetpub\wwwroot\test\

Isn't the root of my virtual directory "test"?

TIA,

Larry Woods
Jul 19 '05 #1
2 1610
On Tue, 13 Jan 2004 05:41:37 -0700, "Larry Woods" <la***@lwoods.com>
wrote:
I have defined a virtual directory and application called Test. The
directory is C:\inetpub\wwwroot\Test. I created a trivial page:

<%
response.write Server.Mappath("/")
%>

When I execute this page I get:

C:\inetpub\wwwroot\

but I was expecting to see:

C:\inetpub\wwwroot\test\

Isn't the root of my virtual directory "test"?


The root of the site is just that, the root *of the site*. Not any
directories in the site. Virtual or otherwise.

Jeff
Jul 19 '05 #2
Thanks for the FAST response, Jeff.

Larry Woods

"Jeff Cochran" <jc*************@naplesgov.com> wrote in message
news:40****************@msnews.microsoft.com...
On Tue, 13 Jan 2004 05:41:37 -0700, "Larry Woods" <la***@lwoods.com>
wrote:
I have defined a virtual directory and application called Test. The
directory is C:\inetpub\wwwroot\Test. I created a trivial page:

<%
response.write Server.Mappath("/")
%>

When I execute this page I get:

C:\inetpub\wwwroot\

but I was expecting to see:

C:\inetpub\wwwroot\test\

Isn't the root of my virtual directory "test"?


The root of the site is just that, the root *of the site*. Not any
directories in the site. Virtual or otherwise.

Jeff

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: TomislaW | last post by:
What is asp.net equivalent for Application("Root") in asp?
0
by: damontimm | last post by:
My setup: Mac OS 10.4.4; mysql 4.x ... everything was installed and working fine for some time. Today, I added drupal to my system and had to create a new database in mysql -- now I am having some...
1
by: Tomas | last post by:
When I try to load my xslt i get an xml exception with the message "Root element is missing". The stylesheet works when I preview it in stylus studio, but apparently not in my application. Any...
2
by: tony | last post by:
XslCompiledTransform xslt = new XslCompiledTransform(); ASCIIEncoding encodeToByteArray = new ASCIIEncoding(); MemoryStream inputStream = new MemoryStream(); MemoryStream outputStream = new...
6
by: active | last post by:
This works with Strict Off But not with Strict On Sometimes I can figure out what is needed by running it and using QuickWatch to see the type required but GetObject("winmgmts:\\" &...
3
by: lisa.bogart | last post by:
I am getting a "Root element is missing" error when I try to load a stream into and XmlDocument. Can anyone help me with what I am doing wrong??? Dim xmlTextWriter As XmlTextWriter = Nothing...
1
by: edwige | last post by:
I just installed PostgreSQL on ubuntu linux. the installer does everything for, but I try to use "createuser" I get this message: { FATAL: role "root" does not exist } I have tried different...
11
by: MC | last post by:
I have a couple of customers who are using a program that deserializes an XML file, and on some files, the program fails to see the content of the file -- treats it as zero length and reports "root...
2
by: Tom Chang | last post by:
Try to read following type of XML file, but only get data back on first node: <log id="1234"> <message type="Action"/> </log> <log id="5678"> <message type="Drama"/> </log> <log id="1357">
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.