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 8916161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:09:55+00:00 2026-06-15T05:09:55+00:00

My team and I have been struggling with failed jQuery Ajax requests on certain

  • 0

My team and I have been struggling with failed jQuery Ajax requests on certain pages of our ASP.NET website, while other pages have successful requests.

Here’s my jQuery code:

$.ajax({
  url: 'Test.aspx/Hello',
  data: '{"name": "alex"}',
  dataType: 'json',
  type: 'POST',
  contentType: 'application/json; charset=utf-8',
  error: function() { console.log("error"); },
  success: function(data) { console.log(data.d); }
});

And the C# code (in Test.aspx.cs):

[WebMethod]
public static string Hello(string name)
{
    return "success: " + name;
}

This will sound bizarre, but it seems that the problem occurs because the folder containing the pages with the failed requests is called “Adverts”.

I’ve moved the page with the WebMethod (Test.aspx/Test.aspx.cs) to many different folders of my project. I can always call the WebMethod through jQuery Ajax, except when I move the page into the Adverts folder. I’ve gone as far as renaming the Adverts folder to “Jeffrey”. Immediately, the Ajax requests completed successfully. I then created another folder called “Adverts” and moved the page with the WebMethod in there. Strangely, the requests failed.

I’ve tried calling the WebMethod from the same page, like the example above, as well as different pages, like the example below:

url: '/Adverts/Test.aspx/Hello',

I don’t know what else to do other than not use a folder called Adverts, but that feels like quitting. Can anyone please shed any light on this?

  • 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-15T05:09:56+00:00Added an answer on June 15, 2026 at 5:09 am

    Maybe you have some Advertisement-blocking extesions in your browser?

    Also you can use “Incognito mode” while debugging.

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

Sidebar

Related Questions

For a while now, my team and I have been wrapping our data access
I have been trying to setup git for our web development team unsuccessfully. Some
We have been looking to implement Agile methodology within our geographically distributed development team,
I have been struggling with the best way to make sure that the certain
As of late, my team and I have been hard at work turning our
My team and I have a asp.net web forms application and are using several
Background: I am one of two developers on our team. We have been using
I have been working on standardizing the source control structure for our Team Foundation
I work in the Systems & admin team and have been given the task
I have been asked to create some functionality in which marketing team send users

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.