我有一个等待 xml 到达的网络服务。今天我们注意到,XML 有时似乎太大了。现在我想添加<httpRuntime maxRequestLength="10096"
useFullyQualifiedRedirectUrl="true"
executionTimeout="120"/>
到我的 app.config 中。不幸的是它似乎没有效果......这是我的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>
任何建议出了什么问题?谢谢你试图帮助我!
斯蒂菲