Setting MaximumMessageReceiveSize

Topics: Bugs
Mar 19, 2014 at 1:06 PM

I am developing a windows store app in xaml with Caliburn Micro framework. Here I am getting all the data from a Webservice. There is a page where one can edit their post in the project. TO enable editing,I need to get data from the webservice. It is working perfectly when I am trying to edit data without attachment. But if there is a post with attachemnt,my app can't retrieve data from service. It is giving me

The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

this exception.

My code snippet is
----CS Page---

mbmessage = await MessageManager.getThreadData(id);

----getThreadData() method--

public static async Task<MBMessage> getThreadData(long message_id)

     return LearnNET2_DataModel.Manager.Search.GetDeserializedDataForEditThread(await LN2ServiceWrapper.get().getForumMessageAsync(token,scrnm,grp_id,message_id));

here the getForumMessageAsync method is calling the webservice and fetching data.

I do not have any app.config file in client side. I can not even add it. So please guys help me solve this problem as soon as possible.

Thanks in advance.