CslaIdentity and Microsoft.Reporting.WinForms problem

CslaIdentity and Microsoft.Reporting.WinForms problem

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


SMILEMan posted on Wednesday, June 29, 2011

I'm upgrading my application from CSLA 3.0 to 4.1 and use Microsoft.Report.WinForms for local reports based on CSLA business objects which worked fine with my CSLA 3.0 code.

In CSLA 4.1, my custom identity inherits from CslaIdentityBase<T> and is coded as described in Rocky's book (my CSLA 3.0 custom identity inherited from ReadOnlyBase<T> and implemented IIdentity.

When trying to print from my CSLA 4.1 code, I get a "An error occurred during local report processing.
Failed to load expression host assembly. Details: The type initializer for 'SMILE.BusinessIdentity' threw an exception.".

I've located the calling function as the Render() method on a instance of a Microsoft.Reporting.WinForms.LocalReport object, but have been unable to locate via debug where the problem is in my idenity object.

Ray.

Copyright (c) Marimer LLC