wcf - Custom MTOM binding and Max upload size -


i'm using binding configuration below upload service,

<binding name="fileuploadstsbinding">           <security authenticationmode="usernameovertransport"                     requirederivedkeys="false"                     keyentropymode="serverentropy"                     requiresecuritycontextcancellation="false"                     requiresignatureconfirmation="false">           </security>           <mtommessageencoding/>           <httpstransport              transfermode="streamed"              maxreceivedmessagesize="2147483647"/>         </binding> 

but setting, i'm not able upload big files more 1mb, server response bad request.

any thoughts?

you need set maxrequestlength attribute upload work. can here found in web.config file here:

<configuration>    <system.web>       <httpruntime> 

check iis app pool identity has right write temp folder able temporarily store incoming data.


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -