Problem with MembershipIdentity and IsRunOnWebServer

Problem with MembershipIdentity and IsRunOnWebServer

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


trives posted on Thursday, October 29, 2009

I made a class MyMembershipIdentity that derives from MembershipIdentity.  My derived class overrides LoadCustomData() to assign some custom properties from a database.  Everything works fine when I call GetMembershipIdentity with the parameter IsRunOnWebServer = true.  When IsRunOnWebServer = false, however, my custom properties appear to get lost.

It seems to me that while IdentityFactory.DataPortal_Fetch calls GetIdentityOnServer, which in turn calls LoadCustomData(), the problem is that DP_Fetch returns an instance of IdentityFactory.  Of course, IdentityFactory doesn't have my class's custom properties, so their values are effectively lost.

Has anyone else run into this problem?

Copyright (c) Marimer LLC