.net - How to integrate httpRuntime maxRequestLength="8096" into app.config [Webservices] -


i have webservice waits xml arrive. today noticed, xml seems large. wanted add <httpruntime maxrequestlength="10096" usefullyqualifiedredirecturl="true" executiontimeout="120"/> app.config. unfortunately seems have no effect... here app.config:

<?xml version="1.0" encoding="utf-8" ?> <configuration>   <system.web>     <httpruntime maxrequestlength="10096"         usefullyqualifiedredirecturl="true"         executiontimeout="120"/>   </system.web>    <system.servicemodel>     <client />     <standardendpoints />     <services>       <service behaviorconfiguration="metadatasupport" name="iib.wohnpreis.wohnpreisserver">         <host>           <baseaddresses>             <add baseaddress="urltowebservice" />           </baseaddresses>         </host>       </service>     </services>      <bindings>       <basichttpbinding>         <binding name="basichttpbinding" transfermode="buffered" usedefaultwebproxy="false">           <readerquotas maxstringcontentlength="2147483647" />         </binding>       </basichttpbinding>     </bindings>     <behaviors>       <servicebehaviors>         <behavior name="metadatasupport">           <servicemetadata httpgetenabled="true" httpgeturl="wohnpreis/mex" />           <servicedebug includeexceptiondetailinfaults="true" />         </behavior>       </servicebehaviors>     </behaviors>   </system.servicemodel> </configuration> 

any suggestions went wrong? thank trying me!

steffi

got problem. server told client maxstringcontentlength limited 8096 - not true because defined with

<bindings>   <basichttpbinding>     <binding name="basichttpbinding" transfermode="buffered" usedefaultwebproxy="false">       <readerquotas maxstringcontentlength="2147483647" />     </binding>   </basichttpbinding> </bindings> 

unfortunately works if delete name="basichttpbinding" looks like

<bindings>   <basichttpbinding>     <binding transfermode="buffered" usedefaultwebproxy="false">       <readerquotas maxstringcontentlength="2147483647" />     </binding>   </basichttpbinding> </bindings> 

don't know how name interfering configuration - without name works fine...


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -