Activities of "imranStem"

I am using the azure blob storage module and when I upload image on blob, it creates the host name folder on the blob container. I don't want to create the host folder and want to use my path without the host folder. I set multi tenancy false but still it is pointing to host folder.

Here is my configuration in module

var configuration = context.Services.GetConfiguration();
 Configure<AbpBlobStoringOptions>(options =>
 {
     options.Containers.Configure<CategoryBlobContainer>(container =>
     {
         container.IsMultiTenant = false;
         container.UseAzure(azure =>
         {
             azure.ConnectionString = configuration["BlobStoring:Containers:AzureContainer:Configuration:ConnectionString"];
             azure.ContainerName = configuration["BlobStoring:Containers:AzureContainer:Configuration:ContainerName"];
             azure.CreateContainerIfNotExists = true;
             
         });
     });
 });
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I have one .net core web api project which is not abp solution but I want to use the blob storing module with this project. I have created one module in the project as below.

[DependsOn(typeof(NxPBlobStoringAwsModule))]
 public class NxPAipModule : AbpModule
 {
     public override void PreConfigureServices(ServiceConfigurationContext context)
     {
         //context.Services.AddAutoMapperObjectMapper<>();
         base.PreConfigureServices(context);

         Configure<AbpBlobStoringOptions>(options =>
         {
             options.Containers.Configure<DocumentBlobContainer>(container =>
             {
                 container.UseAws(Aws =>
                 {
                     Aws.Region = "eu-west-2";
                     Aws.CreateContainerIfNotExists = true;
                     Aws.UseClientSideEncryption = false;
                     Aws.AccessKeyId = "";
                     Aws.SecretAccessKey= "";
                     Aws.ContainerName = "nxp-staging-1";
                 });
             });
         });
     }
 }

and create the intance of NxPApiModule in program.cs file as below.

using (var application = AbpApplicationFactory.Create<ChurchAipModule>(options =>
 {
     options.UseAutofac();
 }))

This is my NxPBlobStoringAwsModule

[DependsOn(typeof(AbpBlobStoringModule),
 typeof(AbpCachingModule),
     typeof(AbpAutofacModule))]
 public class NxPBlobStoringAwsModule : AbpModule
 {
 }

When I run the project, I am getting below exception on application build.

  • Exception message and full stack trace: System.AggregateException: 'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Volo.Abp.BlobStoring.IBlobContainer Lifetime: Transient ImplementationType: Volo.Abp.BlobStoring.BlobContainer1[Church.Api.DocumentBlobContainer]': Unable to resolve service for type 'Volo.Abp.BlobStoring.IBlobContainerFactory' while attempting to activate 'Volo.Abp.BlobStoring.BlobContainer1[Church.Api.DocumentBlobContainer]'.) (Error while validating the service descriptor 'ServiceType: Church.Api.Services.IShipmentAppService Lifetime: Transient ImplementationType: Church.Api.Services.ShipmentAppService':
  • Steps to reproduce the issue:
Showing 51 to 52 of 52 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on February 16, 2026, 07:42
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.