Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF can return single object just fine but fails when returning a list
    primarykey
    data
    text
    <p>I've sent various other objects over my WCF service through lists without any issues however when I try to send this specific object (in a list) I get, sort of a timeout error. </p> <p>The trace identifier is: TraceIdentifier <a href="http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.TraceTruncatedQuotaExceeded.aspx" rel="nofollow">http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.TraceTruncatedQuotaExceeded.aspx</a></p> <p>The strange thing is: I got another method that returns the object exclusively (not in a list) and it works fine.</p> <p>Furthermore when debugging I've found out that the method (on the service side) returns the list just fine however it's the client that apparently fails receiving it.</p> <p>Here's the method that calls the service (it fails on the line declaring "revs"):</p> <pre><code>public void GetReviewsInModule() { using (var db = new RentItServiceClient()) { var revs = db.GetReviewsInModule(1); } } </code></pre> <p>Here's the method that actually returns the objectas a list (debugged it and it returns it fine):</p> <pre><code>public List&lt;ReviewModule&gt; GetReviewsInModule(int id) { using (Context con = new Context()) { con.Configuration.ProxyCreationEnabled = false; var mod = con.Modules.Find(id); if (mod == null) throw new WebServiceValidationException("Object does not exist"); List&lt;ReviewModule&gt; revs = con.ModuleReviews.Include("User").Where(r =&gt; r.Module.Id == id).ToList(); return revs; } } </code></pre> <p>Also, the object in the list are hardly of any size so please don't tell me to up the sending/receiving limits/timeouts.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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