title: Service Stack:Type definitions should start with a '{', expecting serialized type 'AuthResponse', got string starting with
body: <p>i am using the following code to athenticate the user using ServiceStack basic auth provider in my asp.net application and receiving serilization exception.Please answer if anyone has solve this problem.Thank you.</p>
  
  <p>I am using the following code in my asp.net application:</p>
  
  <pre><code>&lt;asp:Button ID="btnAuth" runat="server" OnClick="btnAuth_Click" Text="Authenticate"/&gt;
  </code></pre>
  
  <p>I am recieving exception on <strong>clien.Post method</strong> in code behind file.</p>
  
  <pre><code>protected void btnAuth_Click(object sender, EventArgs e)
          {
              try
              {                
                  var baseUrl = Request.Url.GetLeftPart(UriPartial.Authority) + "/api";
                  var client = new JsonServiceClient(baseUrl);
                  var authResponse = client.Post&lt;AuthResponse&gt;(new Auth { UserName = "admin", Password = "12345" });
                  if (authResponse.ResponseStatus.ErrorCode == null)
                  {
                     //Do Something here
                  }
              }
              catch (WebServiceException ex)
              {
                  throw ex;
              }
          }
  </code></pre>
  
  <p>Followin is Exeception Detail which i am recieving on <strong>clien.Post method</strong>:</p>
  
  <pre><code>[SerializationException: Type definitions should start with a '{', expecting serialized type 'AuthResponse', got string starting with: 
  </code></pre>