[solved]Azure Blob storage ImageSharp 13.0.1
# help-with-umbraco
m
I have my connection string and container name set. However with the following in a Composer
Copy code
builder.AddAzureBlobFileSystem(AzureBlobFileSystemOptions.MediaFileSystemName)
   .AddAzureBlobImageSharpCache();
I get a VirtualPath is required error OptionsValidationException: DataAnnotation validation failed for 'AzureBlobFileSystemOptions' members: 'VirtualPath' with the error: 'The VirtualPath field is required.'. Microsoft.Extensions.Options.OptionsFactory.Create(string name) System.Lazy.ViaFactory(LazyThreadSafetyMode mode) System.Lazy.ExecutionAndPublication(LazyHelper executionAndPublication, bool useDefaultConstructor) System.Lazy.CreateValue() Microsoft.Extensions.Options.OptionsCache.GetOrAdd(string name, Func createOptions, TArg factoryArgument) Microsoft.Extensions.Options.OptionsMonitor.Get(string name) Umbraco.StorageProviders.AzureBlob.ImageSharp.AzureBlobFileSystemImageCache..ctor(IOptionsMonitor options, string name, string containerRootPath) Umbraco.Cms.Core.DependencyInjection.AddAzureBlobImageSharpCacheExtensions+<>c__DisplayClass3_0.b__0(IServiceProvider provider)
With out the AddAzureBlobImageSharpCache the site loads as expected
AddAzureBlobFileSystem isnt the Media one..... 😄
109 Views