natemcmaster/LettuceEncrypt

Getting "Some services are not able to be constructed" using the sample app

bar10dr opened this issue · 1 comments

I was in the process of integrating LettuceEncrypt in my own project using the sample app as a guide.
Kept getting a "Some services are not able to be constructed" error on CreateHostBuilder(args).Build().Run();

I cloned the main sample app and ran it, and I get the same error there.

InvalidOperationException: Error while validating the service descriptor 'ServiceType: LettuceEncrypt.Internal.AcmeCertificateFactory Lifetime: Singleton ImplementationType: LettuceEncrypt.Internal.AcmeCertificateFactory': Unable to resolve service for type 'LettuceEncrypt.Accounts.IAccountStore' while attempting to activate 'LettuceEncrypt.Internal.AcmeCertificateFactory'.


InvalidOperationException: Unable to resolve service for type 'LettuceEncrypt.Accounts.IAccountStore' while attempting to activate 'LettuceEncrypt.Internal.AcmeCertificateFactory'.

image

Obviously I'm doing something wrong here, any help would be appreciated.

Duplicate. Check this workaround: #132 (comment)