我有一个用c#WPF编写的软件。 在app.config文件中我有这一部分:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IXXXCustomer" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxBufferSize="400000" maxReceivedMessageSize="400000"
textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"
messageEncoding="Text">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://update.xxx.com/xxxCustomer.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IxxxCustomer" contract="xxxService.IxxxCustomer" name="BasicHttpBinding_IxxxCustomer"/>
</client>
</system.serviceModel>
我需要maxBufferSize和maxReceivedMessageSize更改其值。为此,我手动编辑文件,在调试中一切正常。
当我在已经安装了我的应用程序的PC客户端上发布该软件时,我不知道如何更改包含这些值的softwarename.exe.config文件。
有谁知道怎么做?
先谢谢。