Page 1 of 1
Cannot convert null literal to non-nullable reference type
Posted: Fri Sep 13, 2024 10:39 pm
by Markom
I'm trying to find out if it is possible to use a project that was developed in ASPNetMaker2020 in ASPNetmaker2024. Has anybody any experience with this step? Or should I do it stepwise, migrate step by step to 2021, 2022, 2023?
Re: Upgrade from 2020 to 2024
Posted: Fri Sep 13, 2024 10:46 pm
by MichaelG
Just open by v2024 directly. Also read Migrating to v2024.
Re: Upgrade from 2020 to 2024
Posted: Mon Sep 16, 2024 8:14 pm
by Markom
Actually I did, but I get a lot of errors like ': Cannot convert null literal to non-nullable reference type', nio clue how to solve this.
Re: Upgrade from 2020 to 2024
Posted: Tue Sep 17, 2024 7:36 am
by MichaelG
Since v2022, nullable reference types is used, you may need to update your server events to resolve warnings, see Learn techniques to resolve nullable warnings.
If you have server event codes, comment them first and then uncomment them one by one.