-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.Runtime.Serialization.SerializationException: 'Type 'Microsoft.ServiceFabric.Services.LogContext' in assembly 'Microsoft.ServiceFabric.Services, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable.' #350
Comments
Thank you @LastTribunal for letting us know. |
@LastTribunal can you please describe your use case? As in when do you see this exception? Just wanted to know what all scenarios are affected. |
its real simple, you added a new class Microsoft.ServiceFabric.Services.LogContext and didnt make it serializable, which broke my code when I upgraded the binaries for SF 10 (mandatory)
|
LogContext is not serializable by design. The code example doesn't explain why it could be a problem. Please expand the example and reopen the issue if you have a legitimate reason for this requirement. |
you broke something that used to work, yes that by design per MS, which is inline with the narrative that a man can be a woman.. enjoy |
@LastTribunal I am guessing that you are serializing an object graph that now includes the new LogContext class, but I can't see that from your example. Can you expand the example to illustrate how Service Fabric is involved? |
Конечно, Олег. I didnt make it clear, I'll try now.. The service class I showed you uses an XSLT transformer that doesn't dispose of memory resulting from JS processing that is part of the XSLT document. To clear the memory, I came up with the "rotating app domain", where I create enqueue dequeue and dispose of app domains every 3 minutes, this solution has been working until the LogContext class was added or if it was there, it is no longer marked serializable, since after later releases, this mechanism throws the aforementioned error. Here is the code I used to create and app domain from the xslt class shown above.. Which is another SF service. If you still have questions, we can do a screenshare over teams, and Ill be happy to explain further..
|
Thanks @LastTribunal. Are you using .NET remoting or Service Fabric remoting to create instances of |
Describe the bug
started happening sometime since version 6.0.1048
Probably when Microsoft.ServiceFabric.Services.LogContext was added
The text was updated successfully, but these errors were encountered: