在Visual Studio 2012 web项目中使用jquery执行AJAX GET时出现网络错误

在Visual Studio 2012 web项目中使用jquery执行AJAX GET时出现网络错误,jquery,ajax,visual-studio-2012,get,xmlhttprequest,Jquery,Ajax,Visual Studio 2012,Get,Xmlhttprequest,我有一个简单的jquery.ajax调用,用于检查用户的凭据。我的问题是,它在其他任何地方都能工作(IE8、9、10、Chrome、Firefox、VS2008和IE8),但在我的特殊情况下,我使用Visual Studio 2012,并且从那里启动它时使用任何浏览器都会导致一个通用的“网络错误”。我的电话看起来就像这样: var username = $('#Username').val(); var password = $('#Password').val(); var q

我有一个简单的jquery.ajax调用,用于检查用户的凭据。我的问题是,它在其他任何地方都能工作(IE8、9、10、Chrome、Firefox、VS2008和IE8),但在我的特殊情况下,我使用Visual Studio 2012,并且从那里启动它时使用任何浏览器都会导致一个通用的“网络错误”。我的电话看起来就像这样:

var username = $('#Username').val();
    var password = $('#Password').val();
    var qstr = "userName=" + username + "&password=" + password;
$.ajax({
        type: "GET",
        url: "http://" + serverId + "/ADService/Service1.asmx/LoginUser",
        data: qstr,
        async: false,
        timeout: 5000,
        dataType: "xml",
        success: function (xml) {
            alert('Success');
            result = $(xml).find('result').text();
            userId = $(xml).find('userId').text();
            name = $(xml).find('name').text();
            role = $(xml).find('role').text();
        }
    , error: function (xmlHttpRequest, ajaxOptions, thrownError) {
        alert('response: ' + xmlHttpRequest.responseText);
        alert('status: ' + xmlHttpRequest.statusText);
    }
    }).done(function (data) {
        createCookie("userId", userId);
        createCookie("name", name);
        createCookie("role", role);
        eraseCookie("returningFromPage");

        if (result == "VALID") {
            if (role == "Engineer") {
                window.location.href = "EngrView.aspx";
            }
            else {
                window.location.href = "AD_Select.aspx";
            }
        }
        else {
            alert("Login failed");
        }
    })
    .fail(function () {
        alert("Login failed (.fail function)");
    });
对于我提到的配置,这个调用总是以“error”事件处理程序结束,一般响应为“networkerror”,而没有其他关于发生了什么的信息

看看fiddler,这个调用实际上是从服务器发出的,响应是正确的。我觉得有一些我不知道的VS2012设置正在扼杀我的通话。有什么想法吗