Click here to Skip to main content
15,039,021 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am converting a image into bytes in flex and sending bytes to wcf service it works fine when it is in smaller size but when size is more it is not working and showing that soap response error or 404 error....here is my web config file which is in my wcf services...



XML
<?xml version="1.0"?>
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
     </system.web>
    <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="true"/>
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
 <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
  <system.net>
    <mailSettings>
      <smtp from="">
        <network host="localhost" port="25" userName="" password=""/>
      </smtp>
    </mailSettings>
  </system.net>
</configuration>
Posted
Updated 28-Mar-12 4:22am
v2

I guess you are using WCF 4.0.In that you have to find out the tags that are used for configuration.here is a sample of configuration tags that are used in WCF3.0.You can try and look up in the web the same WCF 4.0

<custombinding>        
        <binding name="LargeCustomBinding">
                 receiveTimeout="01:00:00" 
                 openTimeout="01:00:00" 
                 closeTimeout="01:00:00" 
                 sendTimeout="01:00:00">
          <binarymessageencoding>
            maxReadPoolSize="2147483647" 
            maxSessionSize="2147483647" 
            maxWritePoolSize="2147483647">
            <readerquotas>
              maxArrayLength="2147483647" 
              maxDepth="2147483647" 
              maxBytesPerRead="2147483647" 
              maxNameTableCharCount="2147483647" 
              maxStringContentLength="2147483647" />
          </readerquotas></binarymessageencoding>
          <httptransport>
            maxBufferSize="2147483647" 
            maxReceivedMessageSize="2147483647" 
            maxBufferPoolSize="2147483647"/>
        </httptransport></binding>
      </custombinding>
   
Comments
Patha Ashish 12-Apr-12 10:21am
   
it did not work
Added these lines in my wen config......it worked out..



<basichttpbinding>
<binding>
maxReceivedMessageSize="2147483647" closeTimeout="00:10:00" maxBufferPoolSize="2147483647"
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferSize="2147483647"
>
<readerquotas>
maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647
"/>
<security mode="None">


   
Comments
baskiramadoss 9-Oct-15 6:41am
   
<system.servicemodel>
<bindings>
<basichttpbinding>

<binding name="BasicHttpBinding_IWordToPDFConvertionService" receivetimeout="01:00:00"
="" sendtimeout="01:00:00" maxreceivedmessagesize="2147483647" maxbuffersize="2147483647" maxbufferpoolsize="2147483647">
<readerquotas maxdepth="2147483647"
="" maxstringcontentlength="2147483647" maxarraylength="2147483647" maxbytesperread="2147483647" maxnametablecharcount="2147483647">




<client>
<endpoint address="http://localhost:57103/WordToPDFConvertionService.svc"
="" binding="basicHttpBinding" bindingconfiguration="BasicHttpBinding_IWordToPDFConvertionService" contract="WordToPDFConvertServices.IWordToPDFConvertionService" name="BasicHttpBinding_IWordToPDFConvertionService">



Still i'm getting same issue

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900