在ide.config里加入以下内容便可
Code
<system.serviceModel>
<client>
<endpoint binding="customBinding" bindingConfiguration="testBinding" contract="IMetadataExchange" name="http"/>
</client>
<bindings>
<customBinding>
<binding name="testBinding">
<textMessageEncoding>
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
</textMessageEncoding>
<httpTransport transferMode="Buffered" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"/>
</binding>
</customBinding>
</bindings>
</system.serviceModel>