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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:53:01+00:00 2026-05-23T18:53:01+00:00

I have an AJAX-based WebGet method that returns JSON. It won’t work with JSON

  • 0

I have an AJAX-based WebGet method that returns JSON. It won’t work with JSON results of a few thousand rows (if I take only 100 or so rows it works). I notice that the browser just stalls and nothing happens, without any information showing the Firebug console:

    [WebGet]
    public HttpTransactionTransformArgs Test()
    {
        HttpTransactionFilterArgs args = new HttpTransactionFilterArgs();

        args.Context = "MyDb";
        args.Entity = "MyDbRow";
        args.Key = "1";
        args.Option = null;

        HttpTransactionTransformArgs targs = new HttpDataPush().TransformRequest(args);

        return targs; 
    }

[DataContract]
[KnownType(typeof(HttpTransactionTransformArgs))]
[KnownType(typeof(HttpColumnDefinition))]
[KnownType(typeof(HttpDataRow))]
public class HttpTransactionTransformArgs
{
    [DataMember]    
    public string EntityName { get; set; }

    [DataMember]
    public List<HttpColumnDefinition> Schema { get; set; }

    [DataMember]
    public List<HttpDataRow> Data { get; set; }

    [DataMember]
    public bool TransactionSuccessful { get; set; }
}

And here is my server-side configuration for WCF:

  <service name="Test.AJAXService" behaviorConfiguration="metadataBehavior">
    <endpoint address="" behaviorConfiguration="Test.AJAXServiceAspNetAjaxBehavior" 
              bindingConfiguration="webHttpConfig"
              binding="webHttpBinding" contract="Test.IAJAXServiceTest" />
  </service>

This is the webHttpBinding config I am applying:

      <webHttpBinding>
    <binding name="webHttpConfig" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"
              closeTimeout="00:30:00" openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00" >
      <readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647"
                    maxDepth="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
    </binding>
  </webHttpBinding>

And here is the endpoing behavior:

    <behavior name="Test.AJAXServiceAspNetAjaxBehavior">
      <enableWebScript />
      <webHttp defaultOutgoingResponseFormat="Json"  />
      <dataContractSerializer maxItemsInObjectGraph="2147483647" />
    </behavior>

It looks to me like everything is maxed out and it should work, what might I be missing?

  • 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-05-23T18:53:02+00:00Added an answer on May 23, 2026 at 6:53 pm

    I solved this by changing the dataContractSerializer attribute on the metadataBehavior configuration, because the AJAXServiceAspNetAjaxBehavior wasnt enough. It was taking my maxItemsInObjectGraph attribute from the service-level, not the endoint level:

    <service name="Test.AJAXService" behaviorConfiguration="metadataBehavior">   
         <endpoint address="" behaviorConfiguration="Test.AJAXServiceAspNetAjaxBehavior"             
           bindingConfiguration="webHttpConfig"               
           binding="webHttpBinding" 
           contract="Test.IAJAXServiceTest" />   
    </service> 
    

    In metadataBehavior:

        <behavior name="metadataBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
          <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
        </behavior>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF based service that I use to expose AJAX functionality. Sometimes
I have an ajax based login form for my site and have noticed that
So I have a really simple form on a website that's entirely AJAX based
I have a form that is generated via ajax based of a multi-file uploader
I have an AJAX based application that updates a text field in a form
I have developed an AJAX based game where there is a bug caused (very
I have a custom built ajax [div] based dynamic dropdown. I have an [input]
I have a series of dynamically generated inputs that I need to have ajax
I am using asp.net MVC to develop an application that will have ajax interactions.
i am trying to making php ajax based chat system....and i have developed it

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.