How to increase maxReceivedMessageSize and maxBufferSize parameters in app.config file to 2000000 before running the application.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
Open app.config on client side and add maxBufferSize and maxReceivedMessageSize attributes if it is not available
Original
After Edit/Update
You can do that in your app.config. like that:
(The max value is
Int32.MaxValue
)Or in Code:
Note:
If your service is open to the Wide world, think about security when you increase this value.
Easy solution: Check if it works for you..
Goto web.config
Find binding used by client.
change as,
maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"
Done.
on client side and server side
If you are using a custom binding, you can set the values like this:
You need to do that on your binding, but you'll need to do it on both Client and Server. Something like: