<configuration> <appsettings> <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> </appsettings> <system.web> <compilation debug="true" /> <httpruntime maxrequestlength="89535600" /> </system.web> <system.webserver> <security> <requestfiltering> <requestlimits maxallowedcontentlength="89535600" /> </requestfiltering> </security> </system.webserver> <!-- When deploying the service library project, the content of the config file must be added to the host's app.config file. System.Configuration does not support config files for libraries. --> <system.servicemodel> <client> <endpoint binding="netTcpBinding" bindingconfiguration="TcpSampleBinding"> contract="WcfServiceLibrary1.IService1" name="SampleClientBinding" /> </endpoint></client> <bindings> <nettcpbinding> <binding name="TcpSampleBinding" closetimeout="00:20:00" opentimeout="00:20:00"> receiveTimeout="00:20:00" sendTimeout="00:20:00" transactionFlow="false" transferMode="Streamed" maxBufferPoolSize="524288" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> <readerquotas maxdepth="64" maxstringcontentlength="10240" maxarraylength="16384"> maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="Transport" /> </readerquotas></binding> </nettcpbinding> </bindings> <behaviors> <servicebehaviors> <behavior name="SampleTestServiceBehaviour"> <servicedebug includeexceptiondetailinfaults="true" /> <servicemetadata /> </behavior> </servicebehaviors> </behaviors> <services> <service behaviorconfiguration="SampleTestServiceBehaviour" name="WcfServiceLibrary1.Service1"> <endpoint address="" binding="netTcpBinding"> name="SampleNetTcpBinding" contract="WcfServiceLibrary1.IService1" /> <endpoint address="mex" binding="mexTcpBinding" bindingconfiguration=""> name="NetTcpMaxBinding" contract="IMetadataExchange" /> <host> <baseAddresses> <add baseaddress="net.tcp://localhost:19957/SampleSvc" /> </baseAddresses> </host> </endpoint></endpoint></service> </services> </system.servicemodel> </configuration>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)