Re: Retrieving users email address

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jeff Cochran (jeff.nospam_at_zina.com)
Date: 11/19/04


Date: Fri, 19 Nov 2004 17:18:37 GMT

On Fri, 19 Nov 2004 16:33:30 -0000, "CJM"
<cjmnews04@newsgroups.nospam> wrote:

>I'm trying to retrieve the users email address via ADSI in ASP.
>
>So far, I have the following code:
>
>Set oUser = GetObject("WinNT://domain/" & Request.Form("UID") & ",user")
>Response.Write oUser.EmailAddress
>
>But I get the following message:
>
>"The directory property cannot be found in the cache. "
>
>Any ideas where I am going wrong?

First guess is you're looking for a directory property that isn't in
the cache... :)

You're going to need to get specific and tell us versions of OS,
Active Directory or not, etc. Also, if the email address isn't in
your directory, you're still not going to get anything.

Jeff



Relevant Pages

  • Re: scripting problem
    ... Microsoft Windows Script Host Version 5.6 ... Active Directory: The directory property cannot be found in the cache. ...
    (microsoft.public.windows.server.active_directory)
  • Re: How to find "LastLogonTime" for users
    ... I wonder what the error message means, "Active Directory: ... directory property cannot be found in the cache" for the code from ... Athif ...
    (microsoft.public.windows.server.scripting)
  • Re: Reformat Server after uninstall active directory?
    ... Jeff, what a vivid figuration! ... >Subject: Re: Reformat Server after uninstall active directory? ...
    (microsoft.public.windows.server.setup)
  • Re: Required attributes for a user account?
    ... creation of the particular object class. ... "Jeff" skrev i meddelandet ... > "Paul Bergson" wrote in message ... >> Bring up the Active Directory Schema via the mmc snap-in, select Classes, ...
    (microsoft.public.windows.server.active_directory)
  • Re: SBS 2K3 Setup after Swing Migration - Error creating user accounts
    ... Please update your other threads as I read an older one ' where is Jeff' and got the impression still not fixed. ... Active Directory is running. ... the same error message! ...
    (microsoft.public.windows.server.sbs)