hello, iam using csla4.0 with SILVERLIGHT4
ihave used the compression example and the compression is working great
ihave added the exact configuration in the examples but when ever i sent data
more than 4 MB the remote server return not found exception
ihave checked the web.config file and clientconfig and put the maximum values
but the same error is coming , does any one have an idea , here's my client config file , and web.config:
web.config :
<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
<bindings>
<customBinding>
<binding name="BinaryBinding_IWcfPortal" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="10:10:00">
<binaryMessageEncoding maxReadPoolSize="2147483647" maxSessionSize="2147483647" maxWritePoolSize="2147483647" >
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
</binaryMessageEncoding>
<httpTransport maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" />
</binding>
</customBinding>
</bindings>
<services>
<service name="Telerik.Reporting.Service.ReportService" behaviorConfiguration="ReportServiceBehavior">
<endpoint
address=""
binding="basicHttpBinding"
contract="Telerik.Reporting.Service.IReportService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint
address="resources"
binding="webHttpBinding"
behaviorConfiguration="WebBehavior"
contract="Telerik.Reporting.Service.IResourceService"/>
<endpoint
address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
<service name="Business.Compression.CompressedHost" behaviorConfiguration="WcfPortalBehavior">
<endpoint address="" binding="customBinding" contract="Csla.Server.Hosts.Silverlight.IWcfPortal" bindingConfiguration="BinaryBinding_IWcfPortal">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WcfPortalBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
<behavior name="ReportServiceBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="WebBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel>
servicreference.clientconfig file :
<configuration>
<system.serviceModel>
<bindings>
<customBinding>
<binding name="BinaryBinding_IWcfPortal" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00">
<binaryMessageEncoding />
<httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="http://localhost:57832/WcfSlPortal.svc" binding="customBinding"
bindingConfiguration="BinaryBinding_IWcfPortal" contract="WcfPortal.IWcfPortal"
name="BinaryBinding_IWcfPortal" />
</client>
</system.serviceModel>
</configuration>
is there any thing iam missing ?
Hi
Check your web.config - do you have an entry like this?
<system.web>
......
<httpRuntime maxRequestLength="nnnnnnn"/>
......
</system.web>
This is a limit in KB - the default setting (unless specified) is 4000 (=4 MB) - you probably need to increase that to a higher value.
Read more here: http://msdn.microsoft.com/en-us/library/e1f13641.aspx
hello, thanks for your response, your suggestion has worked for me .
well, but now iam facing new issue in the same field . the problem that when the data bigger than 50 MB in request
the compression iam using giving System.OutOfMemoryException is there any suggestion i can increase the memory .
Copyright (c) Marimer LLC