title: Error parsing undefined value. Path '', line 0, position 0.when serializing anonymous type in windows phone 8 development
body: <p>Here is my code..</p>
  
  <pre><code>var signUpData = new
  {
     first = "abcd",
     last ="efgh",
     email ="sometext",
     password = "sometext",
     phone = contactSession.ContactNumber,
     dialing_code = "some",
     country = "some"
  };
  
  JsonBody = Newtonsoft.Json.JsonConvert.SerializeObject(signUpData);
  
  var tcs = new TaskCompletionSource&lt;Tuple&lt;string, bool&gt;&gt;();
  
  tcs.SetResult(new Tuple&lt;string, bool&gt;(request.ResponseBody,false));//request.ResponseBody is jsonbody that comes from server.
  
  var result = await tcs.Task;
  
  if (result.Item2 == false)
          {
              var errors = JsonConvert.DeserializeAnonymousType(result.Item1, new { error    = "" });
  
              return false;
          }
  </code></pre>
  
  <p>Then i am getting above error sometimes not all the time.</p>
  
  <p>What is the scenario?</p>
  
  <p>Can anyone tell?`</p>