Symptoms
When attempting to save the changes made to a rule configuration by clicking the "Finish" button, the rule configuration window turns grey instead.
Diagnoses
Issue occurs due to the data that is to be passed through is larger than what IIS can accept.
Resolution
The following changes must be made to the K2 smartforms designer web.config:
1. Set the maxRequestLength to a higher value:
<httpRuntime maxRequestLength="51200" /> <!--50MB-->
https://msdn.microsoft.com/en-us/library/system.web.configuration.httpruntimesection.maxrequestlength(v=vs.110).aspx
Note: Max value is 2097152
2. Add maxAllowedContentLength into the config:
This setting does not exit in SmartForms Runtime web.config by default and it has to be added in appropriate place. Its value has to be specified in bytes. Example below shows how to set this limit to be 50MB:
<requestLimits maxAllowedContentLength="52428800" /> <!--50MB-->
Locate <requestFiltering allowDoubleEscaping="true" /> line in your config file and remove closing slash from this line, then add two more lines below so that in conjunction with this edited line it looks as follows:
<requestFiltering allowDoubleEscaping="true">
<requestLimits maxAllowedContentLength="52428800" /> <!--50MB-->
</requestFiltering>
Note: Default maxAllowedContentLength value is 30000000.
https://docs.microsoft.com/en-us/iis/configuration/system.webServer/security/requestFiltering/requestLimits/