Returning DataTable from web service results in size quota (65536) has been exceeded.

Last post 05-17-2008 9:37 AM by zombieboy. 1 replies.

Sort Posts:

  • Returning DataTable from web service results in size quota (65536) has been exceeded.

    05-16-2008, 8:45 AM
    • Loading...
    • zombieboy
    • Joined on 04-16-2008, 5:04 PM
    • Posts 8

    Hi WebService gurus Smile

    I recive an errormsg that I cannot find info on how to rectify?

    "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element."

    I'm returning a DataTable from a Web Service. This code is not going to run in a nuclear power plant, I basically just want something to work even if it's not the best solution to return the whole table thru soap. I might add restrictions for how many records can be returned /add paging etc later)

    code:

    // retrieve a table from web service 

    dt = serviceBlog.SearchFreeTextBlog("%");

     Thank you,

    /QA4ever

  • Re: Returning DataTable from web service results in size quota (65536) has been exceeded.

    05-17-2008, 9:37 AM
    Answer
    • Loading...
    • zombieboy
    • Joined on 04-16-2008, 5:04 PM
    • Posts 8

    Dohh, it was just to search for it, changed value in app.config and it works great! Sorry for bothering you!

    maxBufferSize="655360" maxBufferPoolSize="524288" maxReceivedMessageSize="655360"

Page 1 of 1 (2 items)