Unabled [sic] to create Azure Web Site Management client
See original GitHub issueReceiving this error when the WebJob is running. I’m running the latest code (from master) commit 611773f so I’m wondering if something has broken since the last release (I see a lot of dependencies had changed)
It’s happening after “Deleting answer” (which is after the existence of the files has been verified by the Let’s Encrypt service).
AzureLetsEncryptRenewer.exe Error: 0 : Unabled to create Azure Web Site Management client System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary
2.get_Item(TKey key) at ACMESharp.PKI.CertificateProvider.GetProvider(String name, IReadOnlyDictionary2 initParams) at LetsEncrypt.Azure.Core.Services.AcmeService.GetCertificate(AcmeClient client) at LetsEncrypt.Azure.Core.Services.AcmeService.<RequestCertificate>d__5.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at LetsEncrypt.Azure.Core.CertificateManager.<RequestAndInstallInternalAsync>d__10.MoveNext() ERROR: Encountered exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary2.get_Item(TKey key) at ACMESharp.PKI.CertificateProvider.GetProvider(String name, IReadOnlyDictionary2 initParams) at LetsEncrypt.Azure.Core.Services.AcmeService.GetCertificate(AcmeClient client) at LetsEncrypt.Azure.Core.Services.AcmeService.<RequestCertificate>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at LetsEncrypt.Azure.Core.CertificateManager.<RequestAndInstallInternalAsync>d__10.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at LetsEncrypt.Azure.Core.CertificateManager.RequestAndInstallInternal(IAcmeConfig config) at LetsEncrypt.Azure.Core.CertificateManager.AddCertificate() at OhadSoft.AzureLetsEncrypt.Renewal.Management.RenewalManager.Renew(RenewalParameters renewParams) in d:\a\1\s\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal\Management\RenewalManager.cs:line 53 at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.Renew() in d:\a\1\s\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 31
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)

Top Related StackOverflow Question
I updated the dependencies on my own fork to deploy (as I’m just experimenting currently so not expecting a stable release) and got past most of the certificate generation issues. I now get a failure (but no Exception) when trying to save the .pfx file so I’ll probably hold out for the next official releases of the dependencies before trying again. I’ve written a Powershell add-in for ACMESharp that will allow us to use DNS auth with DNSMadeEasy so I’m not in a massive rush for this, just thought I’d try and help out where I could
So clearly the last trace you’re seeing is coming from this line. I’m not sure exactly what binary you’re running but that part of the source hasn’t changed for a while which is weird for two reasons
catchblock there and therefore trace the exact error.The latter thread suggested his executable ran fine on his local machine. Could you try that out?