In June 2021 I simplified the ArcObjects license code, and now it only checks for one license (currently Advanced), however if you have a Basic license, it will fail. If I just check for Basic, it will fail if you have an Advanced license (which in my opinion is broken, however that is esri for you).
Fix is to check a list of licenses and return success if one succeeds, or fail if all fail.
In June 2021 I simplified the ArcObjects license code, and now it only checks for one license (currently Advanced), however if you have a Basic license, it will fail. If I just check for Basic, it will fail if you have an Advanced license (which in my opinion is broken, however that is esri for you).
Fix is to check a list of licenses and return success if one succeeds, or fail if all fail.