ajj3085:Hi,
I hit this problem too. It has to do with the multiple levels of inheritence. Search this forum for _dummy or dummy to find the solution, or check out the C# 2008 Business Objects book, page 248, RegisterProperty and Inheritance.
Thanks for your help. I have read _dummy related threads. I have tried _dummy trick but it did not help.
#region Dummy Workaround
private static int _dummy;
protected BusinessObject()
{
_dummy = 0;
}
protected override void OnDeserialized(System.Runtime.Serialization.StreamingContext context)
{
base.OnDeserialized(context);
_dummy = 0;
}
#endregion
#region Dummy Workaround
private static int _dummy;
protected AuthorizedUser()
{
_dummy = 0;
}
protected override void OnDeserialized(System.Runtime.Serialization.StreamingContext context)
{
base.OnDeserialized(context);
_dummy = 0;
}
#endregion
#region Dummy Workaround
private static int _dummy;
protected AdminUser()
{
_dummy = 0;
}
protected override void OnDeserialized(System.Runtime.Serialization.StreamingContext context)
{
base.OnDeserialized(context);
_dummy = 0;
}
#endregion
#region Dummy Workaround
private static int _dummy;
protected ClinicUser()
{
_dummy = 0;
}
protected override void OnDeserialized(System.Runtime.Serialization.StreamingContext context)
{
base.OnDeserialized(context);
_dummy = 0;
}
#endregion