Failed to register task server. Database context invalidated by inner exception