Cannot retrieve and manage branchlines in modeler (8.12.5)

1
Since yesterday afternoon I am not able to retrieve and manage my branchlines in the modeler It is a small project and I am getting the following error: Mendix.Modeler.Sprintr.SprintrConnectorException: Error while retrieving sprintr projects. ---> System.ServiceModel.CommunicationException: Error in deserializing body of reply message for operation 'GetProjectsV4'. ---> System.InvalidOperationException: There is an error in XML document (1, 132478). ---> System.Xml.XmlException: The maximum string content length quota (65536) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 132478.    at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3)    at System.Xml.XmlExceptionHelper.ThrowMaxStringContentLengthExceeded(XmlDictionaryReader reader, Int32 maxStringContentLength)    at System.Xml.XmlDictionaryReader.ReadString(Int32 maxStringContentLength)    at System.Xml.XmlBaseReader.ReadElementString()    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderModelerIntegrationPortType.Read52_GetProjectsV4ResponseProjects(Boolean isNullable, Boolean checkType)    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderModelerIntegrationPortType.Read75_Item()    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)    --- End of inner exception stack trace ---    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)    at System.ServiceModel.Dispatcher.XmlSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, XmlSerializer serializer, MessagePartDescription returnPart, MessagePartDescriptionCollection bodyParts, Object[] parameters, Boolean isRequest)    --- End of inner exception stack trace --- Server stack trace:     at System.ServiceModel.Dispatcher.XmlSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, XmlSerializer serializer, MessagePartDescription returnPart, MessagePartDescriptionCollection bodyParts, Object[] parameters, Boolean isRequest)    at System.ServiceModel.Dispatcher.XmlSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, String action, MessageDescription messageDescription, Object[] parameters, Boolean isRequest)    at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest)    at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeReply(Message message, Object[] parameters)    at System.ServiceModel.Dispatcher.ProxyOperationRuntime.AfterReply(ProxyRpc& rpc)    at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]:     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)    at Mendix.Modeler.SprintrConnector.SprintrService.ModelerIntegrationPortType.GetProjectsV4(GetProjectsV4Request request)    at Mendix.Modeler.Sprintr.SprintrConnector.GetProjectsV4() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Sprintr\SprintrConnector.v4.cs:line 15    at Mendix.Modeler.Sprintr.SprintrConnector.GetProjects() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Sprintr\SprintrConnector.cs:line 115    --- End of inner exception stack trace ---    at Mendix.Modeler.Sprintr.SprintrConnector.HandleSprintrException(Exception e, String actionDescription) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Sprintr\SprintrConnector.cs:line 199    at Mendix.Modeler.Sprintr.SprintrConnector.GetProjects() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Sprintr\SprintrConnector.cs:line 123    at Mendix.Modeler.Sprintr.SprintrConnector.RefreshProjects() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Sprintr\SprintrConnector.cs:line 93    at Mendix.Modeler.Sprintr.SprintrConnectorUI.RefreshProjects() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Sprintr\SprintrConnectorUI.cs:line 35  
asked
1 answers
4

Hi Theo,

This is a known issue that when parsing the response of a SOAP service operation, the XMLreader would not read data beyond the size specified by the MaxStringContentLength property. When the response size was larger than this, a CommunicationException is thrown. Basically, you have too many projects such that the response detailing all your projects was too big for Studio Pro to accept.

This issue is fixed in Studio Pro 9.3.0 and up, 8.18.6 and up.

There's also a workaround, namely to change the studiopro.exe.config file, which you can find next to the studiopro.exe in the installation folder. There, you need to change the parameter maxStringContentLength="65536" into something higher like maxStringContentLength="262144". Note that this number needs to be higher than the number marked as the XXXX in this part of the error:

“There is an error in XML document (1, XXXX)”

This occurs in 2 places in the file, you need to replace both. This allows Studio Pro to accept larger responses.

answered