Marc,

I have a DTO class library which I'm running your precompiler against.

When I attempt to use this to Serialize, I receive the following error:

Type=System.InvalidOperationException Msg=Type is not expected,, and no 
contract can be inferred: System.RuntimeType StackTrace= [n]    at 
ProtoBuf.Meta.TypeModel.ThrowUnexpectedType(Type type) in 
c:\Dev\protobuf-net\protobuf-net\Meta\TypeModel.cs:line

Oddly enough, de-serialization works perfectly. I'm not sure if this 
matters, but the DTO library is also a portable class library. All of the 
entities within are tagged with ProtoContract and ProtoMember attributes.

Any ideas what the issue might be? Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/protobuf/-/6_LgIN2a8U0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to