WCF 配置App.Config
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IPublicFontForMongodbService" maxBufferPoolSize="2147483647" receiveTimeout="00:10:00" openTimeout="00:10:00" sendTimeout="00:10:00" closeTimeout="00:10:00" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"/>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:8733/MongodbService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IPublicFontForMongodbService"
contract="PublicFontForMongodbService.IPublicFontForMongodbService"
name="BasicHttpBinding_IPublicFontForMongodbService" />
</client>
</system.serviceModel>