Init exception after migrating to .net8 #15360
-
After migrating from .net7 to 8, app started crashing on the apps init. Specifically on Stacktrace:
I checked and updated all Uno packages but error still ocurring. Any ideas on what could be the issue? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
@nickrandolph any idea? |
Beta Was this translation helpful? Give feedback.
-
I'm getting a similar error on a brand new project (.net 8 and latest versions of uno stuff) when doing something like:
'ApplicationData.Current' throws the exception 'Operation is not valid due to the current state of the object.' |
Beta Was this translation helpful? Give feedback.
-
@mcocaroUX is the exception you're seeing just an internal exception (ie application continues if you let it), or does it crash the app? Asking because for unpackaged apps, there are some internal exceptions thrown by storage wrapper that happen because ApplicationData doesn't exist. |
Beta Was this translation helpful? Give feedback.
-
does this mean that it's no longer possible to save/retrieve application settings, like in https://platform.uno/docs/articles/features/applicationdata.html#storing-settings ? :-( |
Beta Was this translation helpful? Give feedback.
Then it is related to the fact that the app is running unpackaged: microsoft/WindowsAppSDK#2618 (comment). In this case, you can use your own settings system, or use Uno.Extensions support for settings.