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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:02:21+00:00 2026-05-23T22:02:21+00:00

So I ran into the classic Maximum message size exceeded error with a WCF

  • 0

So I ran into the classic “Maximum message size exceeded” error with a WCF service I am working on. Strangely though, setting all the message size settings way up as other posts suggest doesn’t seem to do anything; I still get the same error.

Here is my server config. The client isn’t .net, so there is no client config.

Any ideas?

 <services>
        <service name="MyService" behaviorConfiguration="HTTPMetadataBehavior">
            <endpoint address="http://localhost:2624" binding="webHttpBinding"
              bindingConfiguration="WebHttpSettings" contract="IMyService" />
            <endpoint address="mex"
            binding="mexHttpBinding"
            contract="IMetadataExchange" />
        </service>
    </services>
 <behaviors>
      <serviceBehaviors>
        <behavior name="HTTPMetadataBehavior">
          <serviceMetadata httpGetEnabled="true" httpGetBinding="webHttpBinding"
            httpGetBindingConfiguration="" />            
          <serviceDebug includeExceptionDetailInFaults="true" />          
        </behavior>
      </serviceBehaviors>        
    </behaviors>
      <bindings>
          <webHttpBinding>
              <binding name="WebHttpSettings" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647">                  
                  <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
              </binding>
          </webHttpBinding>
      </bindings>   
  • 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-23T22:02:22+00:00Added an answer on May 23, 2026 at 10:02 pm

    Okay this fix won’t work for everyone, but for me I made my configuration the default for webHttp by omitting the name and that worked. Here is the revised config.

     <services>
            <service name="MyService" behaviorConfiguration="HTTPMetadataBehavior">
                <endpoint address="http://localhost:2624" binding="webHttpBinding"
                  bindingConfiguration="" contract="IMyService" />
            </service>
        </services>
     <behaviors>
          <serviceBehaviors>
            <behavior name="HTTPMetadataBehavior">
              <serviceMetadata httpGetEnabled="true" httpGetBinding="webHttpBinding"
                httpGetBindingConfiguration="" />            
              <serviceDebug includeExceptionDetailInFaults="true" />          
            </behavior>
          </serviceBehaviors>        
        </behaviors>
          <bindings>
              <webHttpBinding>
                  <binding name="" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647">                  
                      <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
                  </binding>
              </webHttpBinding>
          </bindings>  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ran into an Out of Stack Space error trying to serialize an ASP.Net AJAX
I ran into a scenario where LINQ to SQL acts very strangely. I would
I ran into an error that states XPath failed due to: A sequence of
I ran into this error when I try to evaluate the last line below:
I'm working on adding a feature to an old classic asp site and ran
Ran into this issue yesterday on one of our sites. First of all the
I ran into a compiler error that didn't make much sense to me: #include
I ran into an error similar to this forum post on hubfs, which solved
Ran into something interesting, want to know if I'm doing something wrong or if
I ran into an issue with an IIS web app shutting down an idle

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.