Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Comrades,
please look at the below codings that i cannot pass huge byte data type values from asp.net web application to WCF Service and my coding follows,

Client Web.Config,

XML
basichttpbinding  
    
        binding name="BasicHttpBinding_IRequestForFilling" allowcookies="true" maxbufferpoolsize="2147483647" maxbuffersize="2147483647" maxreceivedmessagesize="2147483647" 
         readerquotas maxdepth="2147483647" maxstringcontentlength="2147483647" maxarraylength="2147483647" maxbytesperread="2147483647" maxnametablecharcount="2147483647"


basichttpbinding

XML
endpoint address="http://localhost:3697/RequestForFilling.svc" binding="basicHttpBinding"
                bindingConfiguration="BasicHttpBinding_IRequestForFilling" 
                contract="RequestForFillingService.IRequestForFilling" 
                name="BasicHttpBinding_IRequestForFilling"


WCF Service Config

basichttpbinding

XML
binding name="RequestForFilling" maxreceivedmessagesize="4294967294" maxbuffersize="2147483647" closetimeout="04:01:00"
        openTimeout="04:01:00" receiveTimeout="04:10:00" sendTimeout="04:01:00" transferMode="Streamed"
        allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" useDefaultWebProxy="true"

          readerquotas maxdepth="2147483647" maxstringcontentlength="2147483647" maxarraylength="2147483647" maxbytesperread="2147483647" maxnametablecharcount="2147483647"

          <security mode="None" />




Please let me know what was the mistakes in the above coding,

Regards,
Peer Mohammed. A
Posted
Updated 2-Nov-15 19:33pm
v4
Comments
Suvendu Shekhar Giri 3-Nov-15 1:12am    
Are you getting any error?
Please share the error details.
peer mohammed.A 3-Nov-15 1:25am    
The below is the error message,

There was no endpoint listening at http://localhost:3697/RequestForFilling.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

And the InnerException shows(The remote server returned an error: (404) Not Found.)
Gyaneswar kumar 4-Nov-15 0:23am    
Mentioned error is nothing to do with size of bytes passing into WCF. Please check other configuration

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