Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 29th, 2004, 12:19 PM
Wackedout79 Wackedout79 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 Wackedout79 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Include Virtual ="../" Problem

Will I don't really know a good way of explaining the problem so I will try my best.

I have a dirctory called "c:\inetpub\wwwroot\gamemain" that I set to 2 virtual Directories "/zelda" and "/gta". (gamemain holds my asp code which is the same no matter what game your on.)

Now inside of "/Zelda" and "/gta" I set the directory "c:\inetpub\wwwroot\gamesettings\zelda" (or "c:\inetpub\wwwroot\gamesettings\gta" depending) to a virtual directory called "settings".
So the Virtual Paths should be ("/Zelda" OR "/GTA") & "/settings/names.inc"

This works until I need to include that "names.inc".
It says it can not be found.

I know what the problem is, I just need to know how to get around it.

The Problem:
IIS wont let you call "Includes virtual" from any virual directory that is not on the root.

Please Help! and Thanx

Reply With Quote
  #2  
Old January 29th, 2004, 01:51 PM
Wackedout79 Wackedout79 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 Wackedout79 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Never Mind I Found a fix (kinda)

I created the following code that gets the name of the directory your in.

I use that Directory "Zelda" to link all my objects together.

This is not fix for the above but it is a nice "rigger-nig" to get it working.
------------------------------------

Function GetMainPage()
Dim DirOnly, j
DirOnly = Request.ServerVariables("PATH_INFO")
while instr(DirOnly, "/") > 0
DirOnly = Right(DirOnly,len(Dironly) - instr(DirOnly, "/"))
wend
DirOnly = left(Request.ServerVariables("PATH_INFO") , len(Request.ServerVariables("PATH_INFO") ) - (len(DirOnly) + 1))

while instr(DirOnly, "/") > 0
DirOnly = Right(DirOnly,len(Dironly) - instr(DirOnly, "/"))
wend
GetMainPage = DirOnly
End Function

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Include Virtual ="../" Problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway