Note that there are some explanatory texts on larger screens.

plurals
  1. POThe socket connection was aborted - CommunicationException
    text
    copied!<p><strong>Originally:</strong></p> <ul> <li>I thought this was a circular reference problem........turns out it's not.</li> <li>The problem arose from having not configured the service configurations at all.</li> <li>Since the defaults are very low, sending lots of data will make the service collapse.</li> </ul> <p><strong>Scenario:</strong></p> <ul> <li>It seems I may have circular references in my WCF service, but using "[DataContract(IsReference=true)]", does nothing to help fix it.</li> <li>I receive the error "The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:01:00'."</li> <li>Have I missed something?</li> </ul> <p><strong>Code:</strong></p> <pre><code>[DataContract(IsReference=true)] public class Message { [DataMember] public string TopicName { get; set; } [DataMember] public string EventData { get; set; } [DataMember] public SerializableDictionary&lt;string, FuturesLineAsset&gt; FuturesLineDictionary { get; set ; } } </code></pre> <p><strong>Thoughts:</strong></p> <ul> <li>I wonder if it's because I have a class FuturesAsset, that has a property of type BindableDictionary (THIS IS A CUSTOM OBJECT), and that property holds a list of FuturesLinesAssets.</li> <li>See below:</li> </ul> <p><strong>Parent:</strong></p> <pre><code>public class FuturesAsset { public string AssetName { get; set; } public BindableDictionary&lt;string, FuturesLineAsset&gt; AssetLines { get; private set; } public FuturesAsset() { AssetLines = new BindableDictionary&lt;string, FuturesLineAsset&gt;(); } public FuturesAsset(string assetName) { AssetLines = new BindableDictionary&lt;string, FuturesLineAsset&gt;(); AssetName = assetName; } } </code></pre> <p>Child:</p> <pre><code>public class FuturesLineAsset { public string ReferenceAsset { get; set; } public string MID { get; set; } public double LivePrice { get; set; } public DateTime UpdateTime { get; set; } public DateTime LastContributedTime { get; set; } public double Spread { get; set; } public double Correlation { get; set; } public DateTime Maturity { get; set; } public double ReferenceCurve { get; set; } public FuturesLineAsset(string mID, string referenceAsset, double livePrice) { MID = mID; ReferenceAsset = referenceAsset; ReutersLivePrice = livePrice; } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload