-
Notifications
You must be signed in to change notification settings - Fork 35
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
ArgumentOutOfRangeException in RssDictionarySample #38
Comments
I am having the same issue, Is there any solution for this... I looked at the source code, to complicate for me to figure out why :) |
Okay I found out.... The following link explains why.... https://github.com/microsoft/ManagedEsent/releases Would suggest to the owners of this repository to remove any examples that no longer work.... I am going to try and compile with ESENTCOLLECTIONS_SUPPORTS_SERIALIZATION defined to see how far I get.. |
Forget using this if you want to to use .net core > 2.0. Found this that prevents its usage. Darn all I want is a serializable Dictionary<int, T>. The two I have found don't work... |
You can serialize your T objects to JSON and use as a string in Dictionary<int, string>. |
That what I am doing.... To bad ManagedEsent is not very useful now. Thx... |
Hm, I'm using it to hold a huge taxonomy database/dictionary and it works quite nice. But, yes, it would be nice to remove samples that does not work, and create samples that do. |
I tried what you suggested but running into this issue. dotnet/runtime#23169. It dies on this line of code.. Any help would be appreciated... |
Here's a working example. It creates a PersistentDictionary in the folder dest and every time you run the program it adds a new Test object and dumps previously added one.
|
Thank you for the example are you running this under .netframework netstandard2.0 or netcoreapp3.1? I am still getting the issue with your example.. |
It works in core 3.1 and .net 4.7.2 console apps. |
That did it thank you... I had used my own compiled versions.... |
Hello
I'm trying to run RssDictionarySample, but I get the
ArgumentOutOfRangeException
in line 49, when creating a new PersistentDictionary.Unhandled Exception: System.TypeInitializationException: The type initializer for 'RssDictionarySample.TrivialRssReader' threw an exception. ---> System.ArgumentOutOfRangeException: Not supported for SetColumn Parameter name: TColumn Actual value was RssDictionarySample.RssFeedData.
it seems that
ESENTCOLLECTIONS_SUPPORTS_SERIALIZATION
is not defined, so how do I use a custom struct for a PersistentDictionary value?The text was updated successfully, but these errors were encountered: