{"action":"opened","issue":{"url":"https://api.github.com/repos/esskar/Serialize.Linq/issues/45","labels_url":"https://api.github.com/repos/esskar/Serialize.Linq/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/esskar/Serialize.Linq/issues/45/comments","events_url":"https://api.github.com/repos/esskar/Serialize.Linq/issues/45/events","html_url":"https://github.com/esskar/Serialize.Linq/issues/45","id":58345046,"number":45,"title":"Serialization over NServiceBus; System.MemberAccessException: Cannot create an abstract class.","user":{"login":"Odeanathus","id":2751038,"avatar_url":"https://avatars.githubusercontent.com/u/2751038?v=3","gravatar_id":"","url":"https://api.github.com/users/Odeanathus","html_url":"https://github.com/Odeanathus","followers_url":"https://api.github.com/users/Odeanathus/followers","following_url":"https://api.github.com/users/Odeanathus/following{/other_user}","gists_url":"https://api.github.com/users/Odeanathus/gists{/gist_id}","starred_url":"https://api.github.com/users/Odeanathus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Odeanathus/subscriptions","organizations_url":"https://api.github.com/users/Odeanathus/orgs","repos_url":"https://api.github.com/users/Odeanathus/repos","events_url":"https://api.github.com/users/Odeanathus/events{/privacy}","received_events_url":"https://api.github.com/users/Odeanathus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-20T12:19:59Z","updated_at":"2015-02-20T12:19:59Z","closed_at":null,"body":"This might ben more of an issue in NServiceBus than in Serialize.Linq, not entirely sure but I'll post it here regardless.\r\n\r\nWhen attempting to make a call over NServiceBus where we've created a Message with in it a Property of the type ExpressionNode the message seems to get serialized perfectly fine. However on the service end when Deserializing we get the following exception;\r\n\r\nERROR NServiceBus.Unicast.Transport.TransportReceiver Failed to deserialize message with ID: c6e85a3a-ed9f-4211-809f-a44500d99727\r\nNServiceBus.MessageDeserializationException: An error occurred while attempting to extract logical messages from transport message c6e85a3a-ed9f-4211-809f-a44500d99727 ---> System.MemberAccessException: Cannot create an abstract class.\r\n   at System.Runtime.Serialization.FormatterServices.nativeGetUninitializedObject(RuntimeType type)\r\n   at NServiceBus.MessageInterfaces.MessageMapper.Reflection.MessageMapper.CreateInstance(Type t) in c:\\BuildAgent\\work\\1b05a2fea6e4cd32\\src\\NServiceBus.Core\\MessageInterfaces\\MessageMapper\\Reflection\\MessageMapper.cs:line 426\r\n\r\nThis even happens if we instead of an ExpressionNode require a LambaExpressionNode (which is the underlying type generated by .ToExpressionNode();\r\n\r\nAny ideas at all? Should I be bugging the guys @ NServiceBus instead since there is a fault on their end?\r\n\r\nFYI what we want to accomplish is a 'RefinedQuery' Object with a Take, Skip, Where and OrderBy property. In order to allow the clients to filter their screens. The Take and Skip will simply be integer values, the OrderBy I've yet to wrap my head around and the Where property I'd like to use the ExpressionNode to allow for nice hardcoded filtering on the client side."}}