check your variables.
Try:
If len((usrName,nameLen - domLen) > 1 Then
usrName = Right(usrName,nameLen - domLen)
End If
HTH
--- mmikkelson <[EMAIL PROTECTED]> wrote:
> usrName = Request.ServerVariables("REMOTE_USER")
> domain = "mydomain\"
> domLen = Len(domain)
> nameLen = Len(usrName)
> usrName = Right(usrName,nameLen - domLen)
>
> This piece of code works fine on a Windows XP Pro machine but when I
> try to run the containing page on a Windows 2K Advance Server
> machine, I get the error message noted in the subject line.
>
> What gives?
>
>
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/