This project is read-only.

Problem with search.find

Jul 2, 2008 at 4:18 PM
I used the code below to get a selection of my files

  Service.APIKey = "xxxxx";
        Service.SecretKey = "xxxx";
        Service.EnforceSigning = false;
        Service.PublisherID = "xxx";

        if (Scribd.Net.User.Login("xxxxxxx", "xxxxx"))
            Search.Criteria theCriteria = new Search.Criteria();
            theCriteria.MaxResults = 10;
          //  theCriteria.Query = "Proximity";
            theCriteria.Scope = Scribd.Net.SearchScope.User;
           // theCriteria.StartIndex = 1;

            Search.Result theResult = Search.Find("Prox");

When i try to run this code i get a "Object reference not set to an instance of an object. " Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Any idea how to get it work ?
Jul 3, 2008 at 4:55 AM
Excellent catch.  The problem lay in the way I was parsing the resultant xml from the "find" call.  (I thought totalResultsAvailable was spelled totalResultsVailable - clearly I was insane.)
The source code has been corrected.  The new release will have the fix as well.