-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
Object not serializable (Csla.Core.ContextDictionary) after compiled with .Net Native tool chain and Optimize Code Enabled #962
Comments
Are you using MobileFormatter or BinaryFormatter or something else? |
Hello rocky, Actually above error I am getting only at the time when I complie the uwp app with .Net Native tool chain. If it is normal compile I am am not getting this error . application I used MobileFormatter when ever needed but not in above page . |
hello rocky, |
Hello rocky |
Just tried building your test app, but the zip is missing files so it can't build. |
ohh ! let me upload once again |
test.zip |
It built for me, though with some warnings.
|
okay no Problem just Run the run Project you will get that run time error which is getting to any server call |
RefDll.zip |
The app does instantly crash - but I don't see an error message displayed. I thought this was a compiler/build failure? But you are saying this is a runtime error? |
Yes it will crash . In test App I didn’t added try catch in MainPage.cs there is server call to get the company info .if you put the debugging point you will get the errorinfo while bebuging . This issue is only coming when App compiles with .Net Native tool chains enabled .which is prerequisites for store upload. |
OK, I got a failure using this code var dictionary = new Csla.Core.ContextDictionary
{
{ 123, 456 }
};
dictionary = (Csla.Core.ContextDictionary)Csla.Core.ObjectCloner.Clone(dictionary); So there's clearly an issue. |
Thanks rocky !! |
I'm not sure what the issue is or how to solve it yet - perhaps the native toolchain is optimizing away parts of the code or something? |
Not sure what’s the issue but it works fine with csla 4.6.603 |
Found the issue, so 4.9 will have the fix. |
@SachinPNikam I am pushing a 4.9.0 prerelease to NuGet as I type this, so you should be able to try the preview and confirm that is resolves this issue. |
Thanks rocky ..I will check with this prerelease.. |
With 4.9.0 PreRelease the above issue resolved . there is still other issue which is not related this that i will raise as new. Thanks you so much rocky for the PreRelease . |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
I am getting run time error the Object not serializable (Csla.Core.ContextDictionary) after compiled with .Net Native tool chain and Optimize Code Enabled
Version and Platform
CSLA version: 4.8.1
OS: Windows 10 -177663
Platform: UWP -
Additional context
The text was updated successfully, but these errors were encountered: