These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

use the current username as the root path

In the old version 1.8 free editon, to get the NT users to access their individual home shares I was able to do this:

wexRoot = "/" & Request.ServerVariables("AUTH_USER") 

In the new version, in the inc_config I set the access list to this server variable and then the inc_core.asp crashes with

Error Type:
Microsoft VBScript compilation (0x800A0415)
Expected literal constant
/wex_odrive/inc_core.asp, line 25

Can you help please??? looks like somewhere in your code you are expecting a const value, can it be change to a variant instead?
Alex Garcia 4/4/2003 11:40 AM
There shouldn't be any problem, it doesn't matter to the rest of the application if accessList is a constant or variable. Make sure that you define the variable first though:

Dim accessList
accessList = "/" & Request.ServerVariables("AUTH_USER")

Also I couldn't understand the source of the error message you got because line 25 of inc_core.asp is not related to what you have changed. May you have changed something else?
Cem Alacayir 4/7/2003 6:01 PM
thanks again, I will try again.
Alex Garcia 4/8/2003 12:05 PM