Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 05-27-2005, 04:00   #1 (permalink)
TC
Civilians

 
Default How Do I Create an ASP "Root"?

I'm confused about one aspect of ASP:

When the web server feeds out an ASP page, it first runs the code found
in global.asa. I have several instances of global.asa. How does the
server choose one? My research so far has told me that it runs the
global.asa in "the root folder of the web", but what does that mean?
What is the root folder of the web? From my experimentation, it does
not seem to be the root folder of any website defined in IIS, and it
does not seem to be the root folder of the subweb defined with the
Front Page server extensions. So what is the "root folder"?


-Todd

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 05-27-2005, 04:00   #2 (permalink)
Steve Sobol
Civilians

 
Default Re: How Do I Create an ASP "Root"?

TC wrote:
> I'm confused about one aspect of ASP:
>
> When the web server feeds out an ASP page, it first runs the code found
> in global.asa. I have several instances of global.asa. How does the
> server choose one? My research so far has told me that it runs the
> global.asa in "the root folder of the web", but what does that mean?
> What is the root folder of the web?


The top directory of the web.

If your website blahfoo.com is in c:\websites\blah, c:\websites\blah is
the root directory. And for example,
http://blahfoo.com/dir1/dir2/blah.htm is served out of
c:\websites\blah\dir1\dir2\blah.htm -- there are exceptions, but they
all require you to configure IIS in a non standard way.

> not seem to be the root folder of any website defined in IIS, and it
> does not seem to be the root folder of the subweb defined with the
> Front Page server extensions. So what is the "root folder"?


I don't know if you can *have* a global.asa in the root of a subweb.
I've only placed them in the root of the main website - I generally
don't do subwebs on my IIS-hosted projects.

--
JustThe.net - Apple Valley, CA - http://JustThe.net/ - 888.480.4NET (4638)
Steven J. Sobol, Geek In Charge / sjsobol@JustThe.net / PGP: 0xE3AE35ED

"The wisdom of a fool won't set you free"
--New Order, "Bizarre Love Triangle"
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-27-2005, 08:00   #3 (permalink)
dp
Civilians

 
Default Re: How Do I Create an ASP "Root"?

Steve Sobol wrote:
> TC wrote:
>> I'm confused about one aspect of ASP:
>>
>> When the web server feeds out an ASP page, it first runs the code
>> found in global.asa. I have several instances of global.asa. How
>> does the server choose one? My research so far has told me that it
>> runs the global.asa in "the root folder of the web", but what does
>> that mean? What is the root folder of the web?

>
> The top directory of the web.
>
> If your website blahfoo.com is in c:\websites\blah, c:\websites\blah
> is the root directory. And for example,
> http://blahfoo.com/dir1/dir2/blah.htm is served out of
> c:\websites\blah\dir1\dir2\blah.htm -- there are exceptions, but they
> all require you to configure IIS in a non standard way.
>
>> not seem to be the root folder of any website defined in IIS, and it
>> does not seem to be the root folder of the subweb defined with the
>> Front Page server extensions. So what is the "root folder"?

>
> I don't know if you can *have* a global.asa in the root of a subweb.
> I've only placed them in the root of the main website - I generally
> don't do subwebs on my IIS-hosted projects.
>
> --
> JustThe.net - Apple Valley, CA - http://JustThe.net/ - 888.480.4NET
> (4638) Steven J. Sobol, Geek In Charge / sjsobol@JustThe.net / PGP:
> 0xE3AE35ED
> "The wisdom of a fool won't set you free"
> --New Order, "Bizarre Love Triangle"


Been awhile but IIRC, the root of an IIS web is the directory marked as the
"web application" for the domain. Sub domains are also typically located in
directories marked as web apps.
global.asa files go into the web app directory and their scope includes all
sub dirctories under it.

Sub directories (directories under a domain/sub domain) can also be marked
as web apps (by the server admin) and are often done so for domains that
contain more than one .net application.

FP sub webs however are FP constructs - usually just a sub directory that is
not marked as a web app. Their only real usefulness seems to be limiting the
scope of the horrid FP search bot. You can however, make a sub domain a sub
web on some hosts which would enable it to have it's own global.asa.

--
dp


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-27-2005, 16:00   #4 (permalink)
TC
Civilians

 
Default Re: How Do I Create an ASP "Root"?

Steve,

Thank you for the reply. Unfortunately, however, I'm having a hard time
reconciling what you say with the behavior of my web server. My website
is in C:\Inetpub\wwwroot (i.e. that that is the home directory for the
default website defined in IIS, and that is the folder mapped to
http://###.###.###.###).

Nevertheless, when I run an ASP page in C:\Inetpub\wwwroot\felix, the
server processes C:\Inetpub\wwwroot\felix\global.asa. In other words,
the server seems to think that C:\Inetpub\wwwroot\felix is the root
folder of an ASP application. Why?

Likewise, when I run an ASP page in C:\Inetpub\wwwroot\work\work_a, the
server does not process C:\Inetpub\wwwroot\work\work_a\global.asa. In
other words, the server does not recognize
C:\Inetpub\wwwroot\work\work_a as the root folder of an ASP
application. Why not?

Neither of these folders is the home directory of a website defined in
IIS. Why is one the root folder of an ASP app, and the other is not?

-Todd

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-27-2005, 16:00   #5 (permalink)
TC
Civilians

 
Default Re: How Do I Create an ASP "Root"?

DP,

Unfortunately, I am the server administrator. I'm learning as I go. My
goal is to set up multiple ASP applications.

The terminology "web application" is foreign to me. I know how to use
IIS to set up multiple "Web Sites" on my server, but those web sites do
not seem to correlate to the ASP applications recognized by the server.
Can you give me more detail on the concept of a "web application" and
tell me how to configure one?


-Todd

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-27-2005, 16:00   #6 (permalink)
TC
Civilians

 
Default Re: How Do I Create an ASP "Root"?

William,

I can use MMC to see the IIS Manager. The IIS Manager gives me a list
of "Web Sites". Neither of the folders I mentioned above
(C:\Inetpub\wwwroot\felix and C:\Inetpub\wwwroot\work\work_a) is the
home directory of a web site. From this, I have concluded that "Web
Site" and "ASP Application" are different things.

You also mentioned virtual directories. I don't know what those are.
How can I find virtual directories in IIS?

I should mention that I'm using Windows Server 2003 and IIS 6.0.


-Todd

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-27-2005, 16:00   #7 (permalink)
TC
Civilians

 
Default Re: How Do I Create an ASP "Root"?

William,

That was it!

I'm not using virtual directories, but the properties dialog you
described allows me to designate folders as the root of ASP
applications. This key bit of information was the last thing I needed,
and my website is now working correctly. Thanks.


-Todd

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

Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to Create Master "Key Driver" Milestones copied from subprojec John Microsoft Applications 2 10-26-2005 14:17
Re: Create a "back" hyperlink to the page you previously left Kathy Jacobs Microsoft Applications 1 08-19-2005 16:00
How to create a "slides loading" intro message? Betty Hills Microsoft Applications 2 08-11-2005 08:00
"ActiveX component cannot create object." =?Utf-8?B?Qmlnam9uLWtj?= Microsoft Applications 6 12-27-2004 01:00


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 12:15.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 2.28523 seconds with 19 queries