Error Maximum message size

Hi There,

I have a error in Service Studio 9 when opening a espace. It gives the following error:

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

Any advice?
Hi freek

I had never seen such an error before, but a quick google points me into being a standard .NET issue and not something that's OutSystems related.

According to this post on stackoverflow it seems like a hardcoded limit in Service Studio. I went into the folder where Service Studio is installed (C:\Program Files\OutSystems\Development Environment 9.0\Service Studio), and it seems these values are configured in file ServiceStudio.WS.bindings.config.



From the message, it seems the parameter relevant for this is the maxReceivedMessageSize. Still, as I found out testing, it seems there are other dependent values that need to be consisent. And also, this setting is repeated a lot of times in the file, what I would suggest is:
> Creating a backup copy of the file (in case you get something out of place
> Replace all occurrences of "33554432" with "2147483647" (before you ask, it seems these parameters, such as maxReceivedMessageSize, are all 32-bit integer, and this is the max value is this one).

I just tested this and at least Service Studio starts and is able to connect to Platform Server 9, downloading eSpaces and publishing them without any issues. I did not try to bring the value down to get the error, but this fix makes sense.

Please let me know if this fixes your problem.

Acácio
Hi,

I get this error on my Cloud Account. How can I fix this?

Thanks
Hi Luis

just use the instructions above. These apply to Service Studio (AKA Development tools) which are installed in your workstation, so they also apply if you are using the platform in the cloud. 

Acácio 
Thanks Acacio, but I'm using a Personal Environment, I don't have access to the workstation. 
Hi Luis The workstation is your computer - where you installed Service Studio. Check the path I indicated above: It's where Service Studio is installed in your computer. Acácio
You need to update the file in the dev elopment folder as well as the service center folder

c:\Program files\OutSystems\Development Environment 8.0\ServiceStudio.WS.bindings.config

c:\Program files\OutSystems\Service Studio 8.0\ServiceStudio.WS.bindings.config

backup the file and then do a find a nd replace

 Replace all occurrences of "33554432" with "2147483647" (before you ask, it seems these parameters, such as maxReceivedMessageSize, are all 32-bit integer, and this is the max value is this one).

Any idea where this file in in in the MAC version of Service Studio?

Hi Bruno,

Do you get the same error? Note this is a very old topic, talking about version 9!

Kilian Hekhuis wrote:

Hi Bruno,

Do you get the same error? Note this is a very old topic, talking about version 9!


Hi, yes ... I get tis error still in version 11, On the windows version of service studio I am able to do the suggestion on the top of this thread, but I'm working with the OSX version and cant find the ServiceStudio.WS.bindings.config file

Ok, I'll ask around.

Solution

Bruno,

It should be in /Applications/OutSystems Service Studio.app/Contents/Resources/OutSystems Service Studio.app/Contents/Resources/wine-prefix/drive_c/Program Files/OutSystems/Development Environment 11.0/Service Studio/ServiceStudio.WS.bindings.config

Right click on your OutSystems Service Studio app and click Show Package Contents in order to drill down to it.

Hope that helps!

Solution

Craig St.Jean wrote:

Bruno,

It should be in /Applications/OutSystems Service Studio.app/Contents/Resources/OutSystems Service Studio.app/Contents/Resources/wine-prefix/drive_c/Program Files/OutSystems/Development Environment 11.0/Service Studio/ServiceStudio.WS.bindings.config

Right click on your OutSystems Service Studio app and click Show Package Contents in order to drill down to it.

Hope that helps!


Yep, this is the path, I was able to find it, do the changes suggested above and it all worked.

Thank you very much for the fast replies!

Hey guys, 

I see how we should go about changing the max size, but is there a way to figure out where it's trying to send something of that size. I have a small app I'm just starting the build process on and I'm getting this. I'd like to know where in the app something is supposed to be sending a message that would exceed the max size?


Bruno Silva wrote:

Any idea where this file in in in the MAC version of Service Studio?

Find the Path below

Macintosh HD/Applications/OutSystems Service Studio.app/Contents/Resources/OutSystems Service Studio.app/Contents/Resources/wine-prefix/drive_c/Program Files/OutSystems/Development Environment 11.0/Service Studio