From: Todd <pal...@ya...> - 2004-05-14 20:18:52
|
The FbSecurity object (FbSecurity.cs) has a bug in the DisplayUser() function. The second last line of the function is: FbUserData userData = (FbUserData)info[0]; This throws and InvalidCastException because info[0] is an array of FbUserData objects, not an FbUserData object. Replacing the last two lines with: FbUserData[] users = (FbUserData[])info[0]; return users.Length > 0 ? (FbUserData)users[0] : null; Corrects the problem and also returns null if the user is not valid. Todd |