JQuery Ajax call

JQuery Ajax call

hi

i tried to use a simple AJAX call using jquery. my code is:

  1.  

    $.ajax

    ({

    type:

    "GET",

    url:

    "MyMaster.Master/GeString",

    contentType:

    "application/json; charset=utf-8",

    data:

    "{}",

    dataType:

    "json",

    success: AjaxSucceeded,

    error: AjaxFailed

    });

 and the code behind is:

  1.  

    [

    WebMethod]

    public static string GetString()

    {

    return "hi";

    }

  2. the call fails with the following error:
    401 unauthorized.
    this code works perfectly with just a new test site.
    i try to include this code in a existing site.
    what could be the reason for this error? what site setings shuld  check ?