I uploaded to the latest version when it came out and now I am getting an error in my authentication process during runtime:
The formatter threw an exception while trying to deserialize the message:
There was an error while trying to deserialize parameter http://ideablade.com/EntityModel:bundle.
The InnerException message was 'Element 'http://ideablade.com/EntityModel:Identity' contains data
from a type that maps to the name 'http://schemas.datacontract.org/2004/07/CoreDB.Models:UserToken'.
The deserializer has no knowledge of any type that maps to this name. Consider using a DataContractResolver
or add the type corresponding to 'UserToken' to the list of known types - for example,
by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to DataContractSerializer.'.
Please see InnerException for more details.
UserToken looks like this
[DataContract]
[DiscoverableType(DiscoverableTypeMode.KnownType)]
[KnownType(typeof(UserToken))]
[KnownType(typeof(UserBase))]
public class UserToken : UserIdentity
{
public UserToken(object id, string name, string type, bool isAuthenticated)
: base(name, type, isAuthenticated)
{
_userID = id;
}
//[DataMember]
public string FriendlyName { get; set; }
//[DataMember]
public string PharmacyID { get; set; }
[DataMember]
public object UserID
{
get { return _userID; }
set { _userID = value; }
}
private object _userID;
}
It was working fine before. Not sure what happened. I ran the custom tool on the code generation and everything compiled fine. Anybody have any ideas?