Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Parent paths from one domain to another

Status
Not open for further replies.

TheCandyman

Technical User
Sep 9, 2002
761
US
I'm using IIS6. I have two domains setup with parent paths enabled. I'm have problems using a DB stored in one domain in my second. I know IIS tried to seperate them into protected little worlds.

Site1
Uses file DB.mdb

Site2
Tries, ../../DB.mdb

Permissions are set with IUSR_ on the file. I also even tried putting 'Everyone' with Read permissions for testing thinking that would surly work for test. Still nothing. Ideas??
 
../ simply moves up the folder structures


so ../../data.mdb would be trying to find the file 2 folders up from the current folder.

you will need to use the data folder above both sites and use ../data.mdb from both sites.




Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
So your saying this wouldn't work?

From site2. ../../../site1/folder/DB/mdb
 
it would if the folder you are trying to access the database from was three folders below the site1 folder

as in

Code:
site1/
    |___ folder/
    |   |______DB/
    |          
    |
    |____folder/
         |____folder/
              |____ script running here

you probably need a structure like

Code:
|___DB/
|
|___site1/
|   |___folder/
|
|___site2/
|   |___folder/

bearing in mind from site1/ or site2/ you need ../db/ but from siteN/folder/ you need to use ../../db/

In your scenario, your safest method if you know the physical path on the drives to the mdb file, is to hardcode that into the connection data.







Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top