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

  • SEARCH
  • Home
  • 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 8570251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:30:58+00:00 2026-06-11T18:30:58+00:00

dojo.xhrPost({ url: Default.aspx/TestMethod, handleAs: json, contentType: application/json, postData: dojo.toJson({ }), load: function (result) {

  • 0
dojo.xhrPost({
  url: "Default.aspx/TestMethod",
  handleAs: "json",
  contentType: "application/json",
  postData: dojo.toJson({  }),
  load: function (result) {
    debugger;
  },
  error: function (err) {
    debugger;
  }
});

That is the script I use to make a request to a WebMethod that is exposed in Default.aspx. The method is called TestMethod.

The error that I get is:

Unable to load Default.aspx/TestMethod status: 500

If you need any additional information please let me know.

*Note : I can call the method from the server side and it returns the results as intended.

  • 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-11T18:30:59+00:00Added an answer on June 11, 2026 at 6:30 pm

    I’ve been there. 🙁

    Usually it is a problem with the format of the data that you are passing in. For instance, if your WebMethod has a parameter that is an int and you are passing a string, you will get a failure like this.
    I would use a tool like Fiddler http://www.fiddler2.com/fiddler2/ to see what you are sending to the method.

    Also turn on what ever server side logging and tracing that you have and use it. One source that is useful for 500 errors (which tend to happen before “your” server code is reached) is Asp.net health monitoring.
    There is more info about setting that up and using it at http://msdn.microsoft.com/en-us/library/bb398933(v=vs.100).aspx

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

Sidebar

Related Questions

var cType = function(templateId){ dojo.xhrPost({ url : /mediation1.0.1/template/getCollectorType, handleAs : text, headers : {Content-Type:text/html},
I have: dojo.xhrGet({ url:/data/js/1/markers.js, handleAs:javascript, load: function(r){ dojo.forEach(placemarks, function(item) { Which works fine in
I'm using dojo.xhrPost to sent Ajax Requests The call is wrapped by a function
dojo.addOnLoad(function(){ var jsonStore = new dojo.data.ItemFileReadStore({url:http://localhost:8080/Sai/samu}); }); <div dojoType=dijit.form.FilteringSelect store=jsonStore required=true id=MyId ></div> I
Does Dojo xhrPost / xhrGet has an equivalent callback function as jQuery beforeSend ?
My question is: can we use dojo.xhrPost to post some Json data? More detail:
Since I use Dojo 1.6, errors in dojo.xhrPost() and dojo.xhrGet() calls result in a
I have a function in which I am doing a dojo.xhrPost() . Now the
I am having an issue trying to post a JSON string using dojo.xhrPost to
dojo.addOnLoad( function() { attach on click to id=textDiv dojo.query('#Specific_consultant-Yes').onclick( function(evt) { // document.getElementById(Consultants).style.visibility =

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.