You are here
Home > Software Development > DotNet

IIS: Solution for HTTP 404 of WebService api after ssl integration

All the end point are getting HTTP 404 after ssl is integrated in IIS. To fix that issue, following the steps   1.  Add new binding <binding name="uploadBindingSSL" sendTimeout="00:05:00" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> <security mode="Transport"> <transport clientCredentialType="None"/> </security> </binding> 2.  Add another endpoint in service <endpoint address="" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="uploadBindingSSL" contract="Services.IService1" />    

WCF Cheatsheet

Windows Communication Foundation: WCF can be used for Restful service in both json, xml and etc request response format.

C# CheatSheet

Creating a comma separated string from IList<string> or IEnumerable<string> IList<string> strings = new List<string>{"1","2","testing"}; string joined = string.Join(",", strings);   Creating a comma separated string from IList<int> or IEnumerable<int> List<int> list =List<int>{1,2,3}; string joined = string.Join(",", list.Select(n => n.ToString()).ToArray())   Converting a comma separated string  to IList<int> or IEnumerable<int> string commaSeparatedString = "1,2,3"; List<int> list = Array.ConvertAll(commaSeparatedString .Split(','), int.Parse).ToList(); or string commaSeparatedString

Top