-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
The exception happened 🥇
System.MissingMethodException: Method not found: 'Boolean Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer.CreateIfNotExists(Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions, Microsoft.WindowsAzure.Storage.OperationContext)'.
at log4net.Appender.AzureAppendBlobAppender.ActivateOptions()
at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlElement appenderElement)
log4net:ERROR Appender named [BlobAppender] not found.
My env happened the issue by using log4net.Appender.Azure.
I named my appender with [BlobAppender] on the type of AzureAppendBlobAppender.
I spended one and a half day trying to sovle it as a beginner.
Finally I change the CreateIfNotExists() method to CreateIfNotExistsAsync(), and it solved.
before:------------------------
_cloudBlobContainer.CreateIfNotExists();
after:--------------------------
_cloudBlobContainer.CreateIfNotExistsAsync();
Just for share~
saiseisei and xunafay
Metadata
Metadata
Assignees
Labels
No labels