title: JQuery Ajax Post :500 Internal Server Error
body: <p>I am trying to perform this AJAX post but for some reason I am getting a server 500 error. </p>
  
  <pre><code>   $.ajax({
              url: '.../PublicAPI.svc/Register',
      type: 'POST',
      dataType: 'json',
      async: false,
      //contentType: 'application/json; charset=utf-8',
      data: '{ "ApiKey": "'+$('#ApiKey').val()+'", "LanguageId": "'+$('#LanguageId').val()+'", "Password": "'+$('#Password').val()+'","Username": "'+$('#Email').val()+'" }',
      success: function( response, textStatus, jqXHR ) {
          console.log('success');
          console.log(response);
      },
      error: function( jqXHR, textStatus, errorThrown ) {
          console.log(jqXHR);
              console.log(textStatus);
          console.log(errorThrown);
      }
  }); 
  </code></pre>
  
  <p>Can any body help me to find out what is the issue?</p>