If u are getting those erros and everything seems correctly configured, don't look any further...
I did spend some time searching for the solution..
All classes marked as Serializable.. all enum's having a 0 value
Check the following things to resolve a 404 error (assuming your endpoint is correct), try the 2GB maximum value.
2147483647
u will mostly find the following 3:
serviceBehavior
maxItemsInObjectGraph
<behaviors> <serviceBehaviors> <behavior name="IncreasedItemsInObjectGraph"> <dataContractSerializer maxItemsInObjectGraph="2147483647" /> </behavior> </serviceBehaviors> </behaviors>
binding quotas
maxDepth, maxStringContentLength, maxArrayLength, maxBytesPerRead, maxNameTableCharCount
<binding name="netTcpBinding_Revis" maxReceivedMessageSize="2147483647" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="00:10:00" sendTimeout="00:05:00"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> </binding>
httpRuntime
maxRequestLength
<system.web> <httpRuntime maxRequestLength="1048576" /></system.web>
The one i found myself, the one that solved my exception:
requestFiltering
maxAllowedContentLength
<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="209715200" ></requestLimits> </requestFiltering> </security> </system.webServer>
The service:
<service name="Csla.Server.Hosts.WcfPortal" behaviorConfiguration="IncreasedItemsInObjectGraph"> <endpoint name="WcfDataPortal" binding="netTcpBinding" bindingConfiguration="netTcpBinding_Revis" contract="Csla.Server.Hosts.IWcfPortal" /> </service>
I think all of these are listed in the FAQ as well: http://www.lhotka.net/cslanet/faq/DataPortalFaq.ashx
nope... it's missing the last one.. new in IIS 7.0
<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="209715200" ></requestLimits> </requestFiltering> </security> </system.webServer>
Copyright (c) Marimer LLC