dotnet / orleans

Cloud Native application framework for .NET
https://docs.microsoft.com/dotnet/orleans
MIT License
10.07k stars 2.03k forks source link

Serializer issue for GrainInterfaceMap #1543

Closed ozang closed 8 years ago

ozang commented 8 years ago

Hi,

I am trying to connect to an orleans silo but I got this error:

{"Unsupported type 'Orleans.Runtime.GrainInterfaceMap' encountered. Perhaps you need to mark it [Serializable] or define a custom serializer for it?"}

at Orleans.Serialization.SerializationManager.DeserializeInner(Type expected, BinaryTokenStreamReader stream) at Orleans.Serialization.BuiltInTypes.DeserializeOrleansResponse(Type expected, BinaryTokenStreamReader stream) at Orleans.Serialization.SerializationManager.DeserializeInner(Type expected, BinaryTokenStreamReader stream) at Orleans.Serialization.SerializationManager.Deserialize(Type t, BinaryTokenStreamReader stream) at Orleans.Serialization.SerializationManager.Deserialize(BinaryTokenStreamReader stream) at Orleans.Runtime.Message.DeserializeBody(List1 bytes) at Orleans.Runtime.Message.get_BodyObject() at Orleans.Runtime.GrainReference.ResponseCallback(Message message, TaskCompletionSource1 context)

When I searched in object browser, I can see a class, possibly created to serialize this class : Orleans.Runtime.Configuration.OrleansCodeGenOrleans_Runtime_GrainInterfaceMapSerializer.OrleansCodeGenOrleans_Runtime_GrainInterfaceMapSerializer()

But somehow i got this error. I think there is configuration problem.. Do you have any idea about how I can solve this problem?

ozang commented 8 years ago

While searching for a solution, I found this link: http://pastebin.com/nt9grH5H It contains a autogenerated file, containing GrainInterfaceMapSerializer and also lots of serializers autogenerated by the framework but in my setup it is not generated. Do you have any idea how to trigger this code gereneration process?

sergeybykov commented 8 years ago

Looks exactly like https://github.com/dotnet/orleans/issues/1522.

gabikliot commented 8 years ago

Another example of why it would be helpfull to add version check between client and silo, as part of first connection handshake.

ozang commented 8 years ago

Thank you... I worked...