Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

DAL exception always leads to System.OutOfMemoryExcetion in Silverlight

$
0
0

Hello,

I have a silverlight application that is in a stable (production) state running Csla 4.5.40. I am using the Factory Implementation (ObjectFactory).

I needed to make some changes today so I updated all NuGet packages on the application and all of it's libraries. This upgraded the application to 4.5.600. I only made one code change to handle DataPortalException.ErrorInfo is now HttpErrorInfo instead of WCFErrorInfo. This change isn't impacting my issue as a DataPortalException is never received.

After updating the NuGet packages however if there is an exception (any exception) in the DAL leads to the following exception in Silverlight:

Property load or set failed for property Message (Exception of type 'System.OutOfMemoryException' was thrown.)   at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Csla.DataPortal`1.<BeginFetch>d__1e.MoveNext()

I cannot figure out the cause. Even doing "throw new Exception("Test");" immediatly in the DAL fetch method leads to this. None of my code runs between exception being raised in the DAL and receiving the above exception in Silverlight. I am stumped. If there is a DAL exception in the version running Csla 4.5.40 I get a  DataPortalException object as expected.

Thank you for your help.


Viewing all articles
Browse latest Browse all 764

Trending Articles