My system:
IIS 7.5
Visual Studio 2010
Framework 4
I have make a Web Service that receive a file(byte array). I have make a console app that consume it(Add Service Reference-->Advance-->Add Web Reference). With http it is working perfectly. But I need to consume it with https. So, when I try to consume it with https, it is giving me HTTP 413: Request Entity Too Large. I have been reading a lot, but it is impossible. I have tried to put in the webconfig of the Web Service:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_INopService" maxReceivedMessageSize="22147483647" maxBufferPoolSize="252428800" maxBufferSize="22147483647">
<readerQuotas maxDepth="256" maxStringContentLength="22147483647" maxArrayLength="2222216384"
maxBytesPerRead="2222220000" maxNameTableCharCount="2222216384" ></readerQuotas>
</binding>
</basicHttpBinding>
<basicHttpBinding>
<binding name="HttpBigMessage"
receiveTimeout="00:10:00"
sendTimeout="00:10:00"
maxReceivedMessageSize="2147483647" >
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://localhost/hmenu/GetData.asmx"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_INopService"
contract="PhotoSavingsService.INopService" name="BasicHttpBinding_INopService" />
</client>
</system.serviceModel>
The file is not too large. Where do I need to put the max size?
Thank