GetThreadsInFolderAsynch broken

Feb 20, 2010 at 10:15 PM

Versions 3.0, 3.01, Silverlight 

GetThreadsInFolderAsynch (sic) breaks on RestBase.cs line 700 with a argument null exception. Anyone experienced the same / got a workaround.

 

try
{
// XML Serialization
TObject response = Utilities.DeserializeXML<TObject>(ar.Result);
// JSON Serialization
//string resultString = FixupJSONString(ar.Result, types[0]);
//MethodInfo methodInfo = typeof(Utilities).GetMethod("DeserializeJSONObject").MakeGenericMethod(types[0]);
//resultObject = methodInfo.Invoke(null, new object[] { resultString });
if (!string.IsNullOrEmpty(propName))
{
  value = (TResult)response.GetType().GetProperty(propName).GetValue(response, null);
}

try

{

// XML Serialization

TObject response = Utilities.DeserializeXML<TObject>(ar.Result);

 

// JSON Serialization

//string resultString = FixupJSONString(ar.Result, types[0]);

//MethodInfo methodInfo = typeof(Utilities).GetMethod("DeserializeJSONObject").MakeGenericMethod(types[0]);

//resultObject = methodInfo.Invoke(null, new object[] { resultString });

 

if (!string.IsNullOrEmpty(propName))

{

Line 700 -->   value = (TResult)response.GetType().GetProperty(propName).GetValue(response, null);

}