Last post Apr 24, 2008 10:13 PM by markr2006
Apr 24, 2008 05:39 PM|markr2006|LINK
Thanks in advance.
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at System.DirectoryServices.ResultPropertyValueCollection.get_Item(Int32 index)
at UGA.MyID.UGAMyID.EDS_Lookup(String myID, String passWord, String attrs) in d:\wwwroot\auxweb.uga.edu\parking\App_Code\MyID.cs:line 36
Apr 24, 2008 07:45 PM|rmaiya|LINK
before adding check for the length [i am not sure of syntax]
if( sr.Properties[attr].Length > 0 )
Apr 24, 2008 10:13 PM|markr2006|LINK
The problem is that this should not be a zero length attribute. It should always exist unless the person's eDirectory account was created improperly, so I'm thinking the binding isn't happening. I've had quite a few users get that error. But a lot of
others do not get that error.
This is not a simple check to see if a value exists. I need the value of that attribute so I can connect the person to our database.