locked
The type or namespace name could not be found (are you missing a using directive or an assembly reference?) RRS feed

  • Question

  • User1999570009 posted

    I am recieving the following error message

    The type or namespace name 'IIdentity' could not be found (are you missing a using directive or an assembly reference?)  the following is the code associated with the error. Any help with what I'm missing and where I need to put it would be great.

    public bool ValidatePassword(IIdentity identity, string password) {

    string path = "xxxxxxx";

    bool isValid = false;

    try {

    DirectoryEntry entry = new DirectoryEntry(path, identity.Name, password);

    entry.RefreshCache(new string[] { "displayName" });

    isValid = true;} catch {

    }

    return isValid;

    Wednesday, January 14, 2009 11:01 AM

Answers

  • User533502567 posted

    Try this..

    public bool ValidatePassword(System.Security.Principal.IIdentity identity, string password)

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 14, 2009 11:29 AM