Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 09:53 AM
The Mighty Chaffinch
Guest
 
Posts: n/a
Default 2 Instances of Same App on IIS (Prod'n & Test)

I want to have 2 completely separate instances of my ASP/Access application
running on the same web server. One will be a live production application,
and the other part of a system test environment to check out code/database
changes etc prior to deploying them on the live system.

The appln code is in a virtual directory so the name of this is hard coded
in most of the ASP pages where I do the #includes and elsewhere. It seemed
like a good idea at the time, to make the application more portable. Now I'm
not so sure... I seem to need 2 virtual directories with the same name.
Maybe I'm going off in the wrong direction altogether with these virtual
directories.

I'm trying to understand the IIS concept of Web site Vs. virtual direcory: I
can't find anything that gives a conceptual description: just which boxes to
tick in which Windows screens, or what to do when it goes wrong. I need an
overview to help me understand what the options are, and the pros and cons
of each option.

(The appln uses an Access database but that's no problem as I store the DB
filename in an Application variable. It can easily be changed by editing the
respective global.asa files.)

I've Googled and searched MSN all day and I just can't get a handle on how
to do this. Can somebody point me in the right direction?

MightyC

It it's relevant I'm using IIS 5 / Windows XP Pro

(Previously posted on microsoft.public.inetserver.iis.activeserverpages but
no answer.)


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.536 / Virus Database: 331 - Release Date: 03/11/03


  #2  
Old July 19th, 2005, 09:53 AM
Chris Barber
Guest
 
Posts: n/a
Default Re: 2 Instances of Same App on IIS (Prod'n & Test)

A website (or subweb) is a folder that exists locally and in the case of a
subweb is a subfolder of the current site. A virtual folder is just that, it
appears (at least from within IIS) as a local subfolder but is in fact
located elsewhere (can be another machine). In terms of functionality they
are practically identical (may be a few minor differences - not sure).

Using explicit root-relative or virtual paths to reference stuff like Access
DB's is fine but you should always ensure that common terms (such as the
path to the DB) are defined only once so that changing them becomes easy.
Alternatively, consider locating your Access DB outside of the web structure
and use a normal filepath to access it.

Chris.

"The Mighty Chaffinch" <mightychaffinch@hotmail.com> wrote in message
news:bqh2qj$9hf$1@sparta.btinternet.com...
I want to have 2 completely separate instances of my ASP/Access application
running on the same web server. One will be a live production application,
and the other part of a system test environment to check out code/database
changes etc prior to deploying them on the live system.

The appln code is in a virtual directory so the name of this is hard coded
in most of the ASP pages where I do the #includes and elsewhere. It seemed
like a good idea at the time, to make the application more portable. Now I'm
not so sure... I seem to need 2 virtual directories with the same name.
Maybe I'm going off in the wrong direction altogether with these virtual
directories.

I'm trying to understand the IIS concept of Web site Vs. virtual direcory: I
can't find anything that gives a conceptual description: just which boxes to
tick in which Windows screens, or what to do when it goes wrong. I need an
overview to help me understand what the options are, and the pros and cons
of each option.

(The appln uses an Access database but that's no problem as I store the DB
filename in an Application variable. It can easily be changed by editing the
respective global.asa files.)

I've Googled and searched MSN all day and I just can't get a handle on how
to do this. Can somebody point me in the right direction?

MightyC

It it's relevant I'm using IIS 5 / Windows XP Pro

(Previously posted on microsoft.public.inetserver.iis.activeserverpages but
no answer.)


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.536 / Virus Database: 331 - Release Date: 03/11/03



  #3  
Old July 19th, 2005, 09:55 AM
Mark Schupp
Guest
 
Posts: n/a
Default Re: 2 Instances of Same App on IIS (Prod'n & Test)

You will have to change your includes to use relative paths.

If you can get a copy of window 2000 server you could set up separate web
sites for development and production and have the same virtual directory
name in each.

What is in your include files?

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com


"The Mighty Chaffinch" <mightychaffinch@hotmail.com> wrote in message
news:bqh2qj$9hf$1@sparta.btinternet.com...[color=blue]
> I want to have 2 completely separate instances of my ASP/Access[/color]
application[color=blue]
> running on the same web server. One will be a live production application,
> and the other part of a system test environment to check out code/database
> changes etc prior to deploying them on the live system.
>
> The appln code is in a virtual directory so the name of this is hard coded
> in most of the ASP pages where I do the #includes and elsewhere. It seemed
> like a good idea at the time, to make the application more portable. Now[/color]
I'm[color=blue]
> not so sure... I seem to need 2 virtual directories with the same name.
> Maybe I'm going off in the wrong direction altogether with these virtual
> directories.
>
> I'm trying to understand the IIS concept of Web site Vs. virtual direcory:[/color]
I[color=blue]
> can't find anything that gives a conceptual description: just which boxes[/color]
to[color=blue]
> tick in which Windows screens, or what to do when it goes wrong. I need an
> overview to help me understand what the options are, and the pros and cons
> of each option.
>
> (The appln uses an Access database but that's no problem as I store the DB
> filename in an Application variable. It can easily be changed by editing[/color]
the[color=blue]
> respective global.asa files.)
>
> I've Googled and searched MSN all day and I just can't get a handle on how
> to do this. Can somebody point me in the right direction?
>
> MightyC
>
> It it's relevant I'm using IIS 5 / Windows XP Pro
>
> (Previously posted on microsoft.public.inetserver.iis.activeserverpages[/color]
but[color=blue]
> no answer.)
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.536 / Virus Database: 331 - Release Date: 03/11/03
>
>[/color]


  #4  
Old July 19th, 2005, 09:56 AM
The Mighty Chaffinch
Guest
 
Posts: n/a
Default Re: 2 Instances of Same App on IIS (Prod'n & Test)

> You will have to change your includes to use relative paths.

I was afraid of that, it gets messy if there's more than a single directory
level.
[color=blue]
> If you can get a copy of window 2000 server you could set up separate web
> sites for development and production and have the same virtual directory
> name in each.[/color]

I believe I can do this in Windowws XP Pro. I had already wondered if this
was a possible solution. It's certainly worth experimenting with.
[color=blue]
> What is in your include files?[/color]

I have a number of JScript classes that I use for form handling: mand
fields, updateable grids, etc. Also on the server side I use JScript classes
to handle the DB and SQL which makes the .asp files cleaner/simpler

Thanks for the info.

MightyC



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/03


  #5  
Old July 19th, 2005, 09:56 AM
The Mighty Chaffinch
Guest
 
Posts: n/a
Default Re: 2 Instances of Same App on IIS (Prod'n & Test)

> A website (or subweb) is a folder that exists locally and in the case of a[color=blue]
> subweb is a subfolder of the current site. A virtual folder is just that,[/color]
it[color=blue]
> appears (at least from within IIS) as a local subfolder but is in fact
> located elsewhere (can be another machine). In terms of functionality they
> are practically identical (may be a few minor differences - not sure).
>
> Using explicit root-relative or virtual paths to reference stuff like[/color]
Access[color=blue]
> DB's is fine but you should always ensure that common terms (such as the
> path to the DB) are defined only once so that changing them becomes easy.
> Alternatively, consider locating your Access DB outside of the web[/color]
structure[color=blue]
> and use a normal filepath to access it.[/color]

Thanks for the info.

MightyC



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/03


  #6  
Old July 19th, 2005, 09:57 AM
Chris Barber
Guest
 
Posts: n/a
Default Re: 2 Instances of Same App on IIS (Prod'n & Test)

Be aware that when using Interdev in local mode, all root relative paths
will become invalid. This is why I *only* ever use paths relative to the
directory that I'm working in. Since all my code is modularised I have no
issues with maintaining multiple location paths and in a lot of cases, I can
even do it programmatically so that my GIF image references remain valid.

Regards,

Chris.

"The Mighty Chaffinch" <mightychaffinch@hotmail.com> wrote in message
news:bqm7h7$paj$1@sparta.btinternet.com...[color=blue]
> You will have to change your includes to use relative paths.[/color]

I was afraid of that, it gets messy if there's more than a single directory
level.
[color=blue]
> If you can get a copy of window 2000 server you could set up separate web
> sites for development and production and have the same virtual directory
> name in each.[/color]

I believe I can do this in Windowws XP Pro. I had already wondered if this
was a possible solution. It's certainly worth experimenting with.
[color=blue]
> What is in your include files?[/color]

I have a number of JScript classes that I use for form handling: mand
fields, updateable grids, etc. Also on the server side I use JScript classes
to handle the DB and SQL which makes the .asp files cleaner/simpler

Thanks for the info.

MightyC



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/03



 

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles