public bool HandleError(Exception error, string key)
{
WriteLogToFile(error.Message);
// remove what we think may be stale
if (key != null && key.Trim().Length > 0)
{
// force the ChatterSoapService to logout in this situation.
Object o = HttpRuntime.Cache.Remove(key);
}
// Returning true indicates you performed your behavior.
return true;
}