Hi
I am trying to get NHibernate working with WCF. Originally I was hoping to be able to create a contract that implemented methods of ISession.
Unfortunately, this seems not to work, as the CreateCriteria method requires a generic Type parameter. I get this error:
There was an error while trying to serialize parameter
http://tempuri.org/:persistentClass. The InnerException message was 'Type 'System.RuntimeType' with data contract name 'RuntimeType:http://schemas.datacontract.org/2004/07/System' is not expected
Is the only way for me to create my custom objects on the server and pass them to the client?
I would really appreciate anyone with experience of getting NHibernate working with WCF giving me some pointers here!
Thanks,
Mark.