Starts in:
1 DAY
2 HRS
20 MIN
48 SEC
Starts in:
1 D
2 H
20 M
48 S
Open Closed

I'm trying to make the Azure storage as the container of my file management module in App with angular ui #7770


User avatar
0
AbdulrahmanMZ created
  • ABP Framework version: v8.2.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace: 500 error
  • the response of this call:
  • https://localhost:44334/api/file-management/directory-descriptor?skipCount=0&maxResultCount=10
  • { "error": { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": { "ActivatorChain": "Volo.FileManagement.Directories.DirectoryDescriptorController -> Volo.FileManagement.Directories.DirectoryDescriptorAppService -> Volo.FileManagement.Directories.DirectoryManager -> Volo.FileManagement.Files.FileManager -> Volo.Abp.BlobStoring.BlobContainer`1[[Volo.FileManagement.FileManagementContainer, Volo.FileManagement.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]" }, "validationErrors": null } }

and the response of this call: https://localhost:44334/api/file-management/directory-descriptor/sub-directories { "error": { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": { "ActivatorChain": "Volo.FileManagement.Directories.DirectoryDescriptorController -> Volo.FileManagement.Directories.DirectoryDescriptorAppService -> Volo.FileManagement.Directories.DirectoryManager -> Volo.FileManagement.Files.FileManager -> Volo.Abp.BlobStoring.BlobContainer`1[[Volo.FileManagement.FileManagementContainer, Volo.FileManagement.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]" }, "validationErrors": null } }

  • Steps to reproduce the issue:
  • I installed "Volo.Abp.BlobStoring.Azure" in the my. Application .csproj file <PackageReference Include="Volo.Abp.BlobStoring.Azure" Version="8.2.2" />
  • I added the following code to my ApplicationModule >> ConfigureServices Method:

Configure<AbpBlobStoringOptions>(options => { options.Containers.ConfigureDefault(container => { container.UseAzure(azure => { azure.ConnectionString = "xxxxx"; azure.ContainerName = "xxxx"; azure.CreateContainerIfNotExists = true; }); }); });

when I'm trying to reach to files link, it produces the above described errors.


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    you need to add module dependency

    [DependsOn(typeof(AbpBlobStoringModule),)]
    public class YourApplicationModule : AbpModule
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06