473,325 Members | 2,785 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,325 software developers and data experts.

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
Jul 19 '05 #1
5 3462
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" <mi*************@hotmail.com> wrote in message
news:bq**********@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

Jul 19 '05 #2
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" <mi*************@hotmail.com> wrote in message
news:bq**********@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

Jul 19 '05 #3
> 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.
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.
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.
What is in your include files?


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
Jul 19 '05 #4
> 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.


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
Jul 19 '05 #5
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" <mi*************@hotmail.com> wrote in message
news:bq**********@sparta.btinternet.com...
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.
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.
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.
What is in your include files?


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

Jul 19 '05 #6

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

Similar topics

1
by: ubccis | last post by:
Hi. I am currently running 2 instances of a web application on the same server. one of them has address http://www.justanexample.com/prod and the other has an address of...
0
by: Ben Smith | last post by:
Hello all, We have 3 instances on the same server, prod, test and dev. Is it possible to increase the max_connection limit just for one instance, or would changing the limit effect all 3 ? ...
1
by: Martin V. | last post by:
Hello, Is the multiple instances capability of SQL2K mature enough for a Production system? We're looking at upgrading our hardware but the proposed solution calls for consolidating two...
6
by: Angelos Karantzalis | last post by:
Hi y'all ... I'm a bit puzzled here about .NET class instancing under COM+ Issue 1: I've a COM+ component, let's call it ... COMDbWrapper that initializes itself from an xml file. The data...
5
by: Sean C. | last post by:
Helpful folks, I am in the process of upgrading our company to V8. The steps I have outlined are as follows: 1) Upgrade all clients to latest V7 fixpack 2) Upgrade test server to latest v7...
5
by: sql-db2-dba | last post by:
We have DB2 UDB v8.1 fixpak3 on AIX 5. Production and Development configuarations (at least for DB2) are identical albeit production is a 2-way server while development has only one processor....
7
by: Matt | last post by:
I have approximately 5 instances on my test server that are identical to my prod server. On the prod server, when I look at the services file, there is a single entry per instance and everything...
2
by: whitethomas12 | last post by:
Hi, I currently have some basic code that allows me to run the tracert command through VB.NET and it also updates my database based on the results. I was wondering if someone can help me...
0
by: db2admin | last post by:
hello, We have 2 environments one is test which is one BCU with 8 partitions + admin/catalog node server ( smaller BCU ) and other prod is 3 BCU with 24 partitions + admin/catalog node server (...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.