How can I combine the WCF services config for both http and https in one web.config?

Well, one problem with your combined config is that your two endpoints are on the same address – that won’t work. If you’re hosting in IIS, then your server, virtual directory and the *.svc file needed will determine your basic address – it’ll be something like: http://yourservername/VirtualDirectory/YourService.svc If you want to have two endpoints, at … Read more

Maximum array length quota

My Bad – I forgot to apply my binding configuration to my endpoint in my server-side config. The server config should read: <system.serviceModel> <bindings> <netTcpBinding> <binding name=”NetTcpBinding_ImageResizerServiceContract” closeTimeout=”00:01:00″ openTimeout=”00:01:00″ receiveTimeout=”00:10:00″ sendTimeout=”00:01:00″ transactionFlow=”false” transferMode=”Buffered” transactionProtocol=”OleTransactions” hostNameComparisonMode=”StrongWildcard” listenBacklog=”10″ maxBufferPoolSize=”2147483647″ maxBufferSize=”2147483647″ maxConnections=”10″ maxReceivedMessageSize=”2147483647″> <readerQuotas maxDepth=”2147483647″ maxStringContentLength=”2147483647″ maxArrayLength=”2147483647″ maxBytesPerRead=”2147483647″ maxNameTableCharCount=”2147483647″ /> <reliableSession ordered=”true” inactivityTimeout=”00:10:00″ enabled=”false” /> <security mode=”Transport”> <transport … Read more

WCF service maxReceivedMessageSize basicHttpBinding issue

Removing the name from your binding will make it apply to all endpoints, and should produce the desired results. As so: <services> <service name=”Service.IService”> <clear /> <endpoint binding=”basicHttpBinding” contract=”Service.IService” /> </service> </services> <bindings> <basicHttpBinding> <binding maxBufferSize=”2147483647″ maxReceivedMessageSize=”2147483647″> <readerQuotas maxDepth=”32″ maxStringContentLength=”2147483647″ maxArrayLength=”16348″ maxBytesPerRead=”4096″ maxNameTableCharCount=”16384″ /> </binding> </basicHttpBinding> <webHttpBinding> <binding maxBufferSize=”2147483647″ maxReceivedMessageSize=”2147483647″ /> </webHttpBinding> </bindings> Also note … Read more

Using netsh, bind an SSL certificate to a port number is failing

I fought with this forever to get my IIS Express to do SSL properly. It turns out my certificate was in the Trusted Root Certification Authorities store instead of the Personal Certificates store. This is what worked for me: Make sure your certificate is in “Certificates(Local Computer)/Personal/Certificates” netsh http add sslcert ipport=0.0.0.0:8732 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid='{00112233-4455-6677-8899-AABBCCDDEEFF}’ SSL … Read more

basicHttpBinding vs wsHttpBinding [duplicate]

Ton of material on that out there – just google for “WCF basicHttpBinding wsHttpBinding”. You’ll find amongst others: WCF : BasicHttpBinding compared to WSHttpBinding at SOAP packet level. Difference between BasicHttpBinding and WsHttpBinding and many, many more! Very basically: basicHttp is SOAP 1.1, wsHttp is SOAP 1.2 (they’re quite different, esp. when it comes to … Read more

WCF over SSL – 404 error

I had this same issue on my end. Your post helped me figure out what the issue was. here is my service model section. I discovered that the keys were the httpsGetEnabled then setting the bindingconfiguration I hope this helps. <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name=”RequestImageBehavior”> <serviceMetadata **httpsGetEnabled**=”true” /> <serviceDebug includeExceptionDetailInFaults=”false” /> <dataContractSerializer maxItemsInObjectGraph=”1073741824″ /> </behavior> … Read more

tech