Serializing Custom Identity/Principal as GenericIdentity/Principal

Serializing Custom Identity/Principal as GenericIdentity/Principal

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


fydoh posted on Friday, March 28, 2008

Implementing Custom Principal/Identity resulted in the following error:

Type is not resolved for member 'MySystem.Library.Security.MyPrincipal,MySystem.Library'

I knew this problem had to deal with Cassini, but I'm running on Vista, using Web Applications and don't want to run as Administrator to develop in IIS.  So, I found a solution on your website, but I'm curious as to why it is not implemented in the CSLA samples.  Basically, the idea is to customize the serialization of the custom Principal and Identity to appear as GenericPrincipal or Identity only when Crossing App Domains.

The only gotcha I am guessing would exist here would be if I added properties to my custom Principal/Identity objects that GenericPrincipal/Identity would not carry over.  Anything I'm not seeing here?

Thanks in advance,

David

 

 

Copyright (c) Marimer LLC