Error: The object is in an invalid state as the parent constructor was not called Code: 0