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
UWP apps having nullable DateTime-properties compiled with the NET Native Toolchain crashes #648
Comments
You may be running into a case where the native compiler is optimizing away parts of your code that you need, but it can't identify that you need (e.g. anything invoked via reflection or dynamic code). You might try adding a
From here: https://github.com/MarimerLLC/csla/blob/master/Source/Csla.Uwp/Properties/Csla.Uwp.rd.xml Replace the library name and assembly name with your project's values. |
Sounds like a good theory. I couldn't immediately get it working though but I'll try more tomorrow, maybe on a simpler project. Am I to place the file in the main UWP app project, or in the library project that depends on CSLA? Or both? Is "Library name" the name the is displayed in the Solution Explorer? |
I have now tested further with a clean test project and found that it only happens with Nullable DateTime properties. Maybe others as well, but that's the one that breaks it for me. I haven't been able to amend the problem yet. Would be awesome if you or someone else could look at it: |
I don't see the problem occurring with the current version of UWP and related tooling. It seemed unlikely that it was a CSLA issue before, and this would appear to confirm that it was a UWP issue that Microsoft must have resolved. |
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. |
I'm saying "stuff" because I really have no idea what the cause or even the exact scenario under which this happens. The error occurs only when doing release builds with the .NET Native toolchain enabled, which is a prerequisite for being allowed to publish on the Windows 10 Store
I'm getting
IllegalOperationException
"Attempt to read/load private field property in managed properties" sometimes when doingGetProperty
. The exception breaks on the GetPropetry-line itselfMy property is defined as follows:
I'll see if I can make a reproducable example solution later. I'm running Windows 10586 and the latest CSLA_UWP as of today.
The text was updated successfully, but these errors were encountered: