Starting WCF Test Client and getting MaxReceivedMessageSize error after increasing in app.config

I am trying to set up my first WCF service in VS 2013. I am busy working on a tutorial but fell into a trap ...

Starting a simple service (DataViewerService) that calls the database to return a recordset. I changed the bindings:

    <binding allowCookies="true"
      <readerQuotas maxDepth="32"


inside system.serviceModel and directly below I have included

  <service name="DataViewerService.Service1">
        <add baseAddress="http://localhost:8733/Design_Time_Addresses/DataViewerService/Service1/" />
    <endpoint address="http://localhost:2112/Viewer" 
        <dns value="localhost" />
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />


After I figured it out, all I read is that the client and server need to be configured ... However, I run on localhost and I consume it in a wcf test client. I can't figure out where else I need to make these changes ... What the heck am I missing?


source to share

1 answer

enter image description here You need to edit the configuration in the WCF Test Client.

On the right side of the added service, you will see a node called "config file".

Try minimizing your contract to see it



All Articles