CSLA 4.1 Databinding ListView to CSLA Collection fails after installing .NET 4.5

CSLA 4.1 Databinding ListView to CSLA Collection fails after installing .NET 4.5

Old forum URL: forums.lhotka.net/forums/t/11724.aspx


ptr posted on Tuesday, November 27, 2012

After installing .net 4.5 (comes with vs2012) some dll in of the WPF framework have been replaced with new ones. These new dll give me trouble with databinding to the collection which inherit from CSLAReadOnlyBase. When running on the old framework all works fine, but on the new the MS.Internal.Data.ViewManager.CacheView(Object collection, CollectionViewSource cvs, CollectionView cv, ViewRecord vr) throws a nullpointer exception on databinding (sometimes it works, sometimes it fails). I was wondering if this is a know issue in CSLA 4.1 or that it is a unkown databinding problem at microsoft.

RockfordLhotka replied on Tuesday, November 27, 2012

I don't know, as I have made no effort to test version 4.1 on .NET 4.5.

We created CSLA 4.5 to support .NET 4.5 and 4.0.

Interestingly enough though, I don't think we changed anything in ReadOnlyBase to deal with changes in .NET 4.5 like you describe.

ptr replied on Wednesday, November 28, 2012

I have the issue under investigation at microsoft, if they have a solution/cause for the errors I get I'll post more information. Thx for your thoughts Rocky.

ptr replied on Monday, June 24, 2013

The problem was a faulty gethashcode implementation. Nothing wrong in de csla code.

Copyright (c) Marimer LLC