Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 23, 2010 02:15 PM by fmohamad
Member
100 Points
30 Posts
Nov 22, 2010 07:05 AM|LINK
can we change maxReceivedMessageSize from WCF service code not in client / consumer config file? i have search this thing since 2 days ago and i can't find the suitable solution. thanks before
wcf client C# ASP.NET WCF Service wCF host .net 3.5 wcf binding
Contributor
2451 Points
426 Posts
Nov 22, 2010 09:01 AM|LINK
you can use this syntax
BasicHttpBinding binding = proxy.Endpoint.Binding as BasicHttpBinding; binding.MaxReceivedMessageSize = 20000000;
Nov 23, 2010 02:15 PM|LINK
is there a way to set that value from the service side? i don't want the service consumer write extra code.
fmohamad
Member
100 Points
30 Posts
Change maxReceivedMessageSize in WCF
Nov 22, 2010 07:05 AM|LINK
can we change maxReceivedMessageSize from WCF service code not in client / consumer config file? i have search this thing since 2 days ago and i can't find the suitable solution. thanks before
wcf client C# ASP.NET WCF Service wCF host .net 3.5 wcf binding
mr.aspdotnet
Contributor
2451 Points
426 Posts
Re: Change maxReceivedMessageSize in WCF
Nov 22, 2010 09:01 AM|LINK
you can use this syntax
Note that this value has to be set at the client side not service side
Regards,
fmohamad
Member
100 Points
30 Posts
Re: Change maxReceivedMessageSize in WCF
Nov 23, 2010 02:15 PM|LINK
is there a way to set that value from the service side? i don't want the service consumer write extra code.