Can you provide your Login.xaml and your MauiProgram.cs? Maybe you are not registering your Service in the right way.