Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7875171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:56:19+00:00 2026-06-03T02:56:19+00:00

First time using jquery (using the out of the box 1.4.4 in MVC3 even

  • 0

First time using jquery (using the out of the box 1.4.4 in MVC3 even though its dated).
I am trying to update some elements on the screen as follows,

$(document).ready(function () {
    $.ajax({
        url: '<snip />',
        dataType: 'json',
        success: function (data, textStatus, jqXHR) {
            // <snip />
        },
        error: function (jqXHR, textStatus, errorThrown) {
             // <snip />
        }
    });
 });

This always calls the error function, even though in the jqXHR object I can clearly see the text response

"{
  "DBHealth": "Grey",
  "FSHealth": "Grey",
  "WSHealth": "Grey"
}"

Full HTTP server response is (courtesy of WireShark),

HTTP/1.1 200 OK
Cache-Control: private, s-maxage=0
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 3.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Persistent-Auth: true
Date: Thu, 03 May 2012 14:11:23 GMT
Content-Length: 72

{
  "DBHealth": "Grey",
  "FSHealth": "Grey",
  "WSHealth": "Grey"
}

textStatus is error rather than parsererror, so I assume the problem is not my JSON.
errorThrown is null unsurprisingly as its.

Obvious question is, why is it erroring?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:56:19+00:00Added an answer on June 3, 2026 at 2:56 am

    Visual Studio was being silly. Restarted the debug session and it succeeded just fine. Didn’t change anything in the javascript or server side Controller.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying out some jQuery for the first time. My first goal is for
I'm working on a site and using JQuery for essentially the first time. I've
I'm currently trying to access a REST API for the first time using visual
Creating a simple RPG game, first time using XNA. Trying to get my character
Preface: First time really using JavaScript + jQuery, so my problem likely stems from
I'm using Ajax via jQuery for the first time ever. I have an html
I'm trying to make a mobile application using jQuery Mobile and Phonegap. But first
First time using Asp.net-mvc and originally followed the NerdDinner tutorial. My form submit button
this is my first time using StAX for parsing XML documents (still in the
I want to deploy a website the first time using Rails 3.2.1 with capistrano

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.