I have read through all the related questions, but I still unable to get the right solution for some reason, something is not right on my side, but not sure what\'s causing
this forces the initialize to be called
private readonly Provider _provider; public AccountMembershipService(Provider provider) { _provider = provider ?? (Provider) Membership.Provider; }