$.ajaxSetup --> contentType doesn't work

$.ajaxSetup --> contentType doesn't work

Using: JQuery 1.4.2. 

Creating .Net app. Apparently it errors if i don't set the contentType. So I tried to set it in the ajaxSetup function, but it seems to reset it. The type and dataType attributes seem to work fine, though, just not the contentType.

  1.     $(function () {
  2.         $.ajaxSetup({ type: "POST", contentType: "application/json; charset=utf-8", dataType: 'json' });

  3.         $(".refresh").click(function () {
  4.             $.ajax(
  5.                 {
  6.                     //contentType: "application/json; charset=utf-8",
  7.                     url: 'json.aspx/GetRandomNumber',
  8.                     success: function (data) {
  9.                         $('.result').attr('value', data.d);
  10.                     },
  11.                     error: function (XMLHttpRequest, textStatus, errorThrown) {
  12.                         $('.result').attr('value', XMLHttpRequest + '-' + textStatus + '-' + errorThrown);
  13.                     }
  14.                 }
  15.             );

  16.         });
  17.     });