Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method not found: CreateIfNotExists #77

Open
saiseisei opened this issue Jun 28, 2018 · 0 comments
Open

Method not found: CreateIfNotExists #77

saiseisei opened this issue Jun 28, 2018 · 0 comments

Comments

@saiseisei
Copy link

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~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant