Activities of "imranStem"

I am working on ABP microservice architecture. I have created a new microservice and added an audit logging package in this microservice and remove the references from the administration microservice. I have followed the document https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice and successfully added the Logging microservice. I run the migration and audit log-related tables are created in the new Loggin database.

I have also done the below changes on MyProjectSharedHostingModule.

private void ConfigureDatabaseConnections()
        {
            Configure<AbpDbConnectionOptions>(options =>
            {
                options.Databases.Configure("SaasService", database =>
                {
                    database.MappedConnections.Add("Saas");
                    database.IsUsedByTenants = false;
                });
                
                options.Databases.Configure("AdministrationService", database =>
                {
                    database.MappedConnections.Add("AbpPermissionManagement");
                    database.MappedConnections.Add("AbpSettingManagement");
                    database.MappedConnections.Add("AbpFeatureManagement");
                    database.MappedConnections.Add("AbpLanguageManagement");
                    database.MappedConnections.Add("TextTemplateManagement");
                    database.MappedConnections.Add("AbpBlobStoring");
                    database.MappedConnections.Add("Chat");
                });

                options.Databases.Configure("LoggingService", database =>
                {
                    database.MappedConnections.Add("AbpAuditLogging");
                });
                options.Databases.Configure("IdentityService", database =>
                {
                    database.MappedConnections.Add("AbpIdentity");
                    database.MappedConnections.Add("AbpIdentityServer");
                });
            });
        }

and also added the connection string of logging microservices in all other microservices so log inserts into logging service database.

But Logs are not inserted into the Logging database. The audit logs were inserted into the log file but not in the database.

  • ABP Framework version: v5.1.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: No Exception
  • Steps to reproduce the issue:" Create new microservice and add audit logging into that microservice with logging database and remove audit login modules from administration microservice.

I have microservice architecture and I install File Management Module in administration microservices by ABP Suite. The module is successfully installed and I can see the File management menu in Angular UI. I also give all permission. I have created two folders and when I upload the png or pdf file, I am getting a 415 error.

I also configured the azure blob storage in AdministrationServiceHttpApiHostModule module.

Logs of administration microservice.

2022-03-07 13:25:33.890 +05:30 [INF] Request finished HTTP/1.1 GET https://localhost:44301/api/file-management/directory-descriptor?id=fc2c84ea-a189-488b-0e43-3a02758d29af - 0 - 200 - application/json;+charset=utf-8 42.6268ms 2022-03-07 13:25:39.552 +05:30 [INF] Request starting HTTP/1.1 POST https://localhost:44301/api/file-management/file-descriptor/pre-upload-info application/json 115 2022-03-07 13:25:39.553 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.FileDescriptor 2022-03-07 13:25:39.554 +05:30 [DBG] Found in the cache: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.FileDescriptor 2022-03-07 13:25:39.554 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:FileManagement.FileDescriptor 2022-03-07 13:25:39.554 +05:30 [DBG] Found in the cache: pn:R,pk:admin,n:FileManagement.FileDescriptor 2022-03-07 13:25:39.554 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:Web_Erp,n:FileManagement.FileDescriptor 2022-03-07 13:25:39.554 +05:30 [DBG] Found in the cache: pn:C,pk:Web_Erp,n:FileManagement.FileDescriptor 2022-03-07 13:25:39.555 +05:30 [INF] Executing endpoint 'Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi)' 2022-03-07 13:25:39.558 +05:30 [INF] Route matched with {controller = "FileDescriptors", area = "fileManagement", action = "GetPreInfo", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[System.Collections.Generic.List1[Volo.FileManagement.Files.FileUploadPreInfoDto]] GetPreInfoAsync(System.Collections.Generic.List1[Volo.FileManagement.Files.FileUploadPreInfoRequest]) on controller Volo.FileManagement.Files.FileDescriptorController (Volo.FileManagement.HttpApi). 2022-03-07 13:25:39.575 +05:30 [INF] Executing action method Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi) - Validation state: "Valid" 2022-03-07 13:25:39.579 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.FileDescriptor 2022-03-07 13:25:39.579 +05:30 [DBG] Found in the cache: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.FileDescriptor 2022-03-07 13:25:39.579 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:FileManagement.FileDescriptor 2022-03-07 13:25:39.580 +05:30 [DBG] Found in the cache: pn:R,pk:admin,n:FileManagement.FileDescriptor 2022-03-07 13:25:39.580 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:Web_Erp,n:FileManagement.FileDescriptor 2022-03-07 13:25:39.580 +05:30 [DBG] Found in the cache: pn:C,pk:Web_Erp,n:FileManagement.FileDescriptor 2022-03-07 13:25:39.614 +05:30 [INF] Executed action method Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 39.4151ms. 2022-03-07 13:25:39.615 +05:30 [DBG] Added 0 entity changes to the current audit log 2022-03-07 13:25:39.615 +05:30 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List1[[Volo.FileManagement.Files.FileUploadPreInfoDto, Volo.FileManagement.Application.Contracts, Version=5.1.4.0, Culture=neutral, PublicKeyToken=null]]'. 2022-03-07 13:25:39.616 +05:30 [INF] Executed action Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi) in 57.537ms 2022-03-07 13:25:39.616 +05:30 [INF] Executed endpoint 'Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi)' 2022-03-07 13:25:39.616 +05:30 [DBG] Added 0 entity changes to the current audit log 2022-03-07 13:25:39.696 +05:30 [DBG] Added 0 entity changes to the current audit log 2022-03-07 13:25:39.697 +05:30 [DBG] Added 0 entity changes to the current audit log 2022-03-07 13:25:39.698 +05:30 [INF] Request finished HTTP/1.1 POST https://localhost:44301/api/file-management/file-descriptor/pre-upload-info application/json 115 - 200 - application/json;+charset=utf-8 145.4780ms 2022-03-07 13:25:42.285 +05:30 [INF] Request starting HTTP/1.1 POST https://localhost:44301/api/file-management/file-descriptor/pre-upload-info application/json 115 2022-03-07 13:25:42.289 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.289 +05:30 [DBG] Found in the cache: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.289 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.289 +05:30 [DBG] Found in the cache: pn:R,pk:admin,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.289 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:Web_Erp,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.290 +05:30 [DBG] Found in the cache: pn:C,pk:Web_Erp,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.290 +05:30 [INF] Executing endpoint 'Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi)' 2022-03-07 13:25:42.290 +05:30 [INF] Route matched with {controller = "FileDescriptors", area = "fileManagement", action = "GetPreInfo", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[System.Collections.Generic.List1[Volo.FileManagement.Files.FileUploadPreInfoDto]] GetPreInfoAsync(System.Collections.Generic.List1[Volo.FileManagement.Files.FileUploadPreInfoRequest]) on controller Volo.FileManagement.Files.FileDescriptorController (Volo.FileManagement.HttpApi). 2022-03-07 13:25:42.292 +05:30 [INF] Executing action method Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi) - Validation state: "Valid" 2022-03-07 13:25:42.294 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.295 +05:30 [DBG] Found in the cache: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.295 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.295 +05:30 [DBG] Found in the cache: pn:R,pk:admin,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.295 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:Web_Erp,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.296 +05:30 [DBG] Found in the cache: pn:C,pk:Web_Erp,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.311 +05:30 [INF] Executed action method Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 18.9201ms. 2022-03-07 13:25:42.312 +05:30 [DBG] Added 0 entity changes to the current audit log 2022-03-07 13:25:42.312 +05:30 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List1[[Volo.FileManagement.Files.FileUploadPreInfoDto, Volo.FileManagement.Application.Contracts, Version=5.1.4.0, Culture=neutral, PublicKeyToken=null]]'. 2022-03-07 13:25:42.312 +05:30 [INF] Executed action Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi) in 22.1097ms 2022-03-07 13:25:42.313 +05:30 [INF] Executed endpoint 'Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi)' 2022-03-07 13:25:42.313 +05:30 [DBG] Added 0 entity changes to the current audit log 2022-03-07 13:25:42.389 +05:30 [DBG] Added 0 entity changes to the current audit log 2022-03-07 13:25:42.390 +05:30 [DBG] Added 0 entity changes to the current audit log 2022-03-07 13:25:42.391 +05:30 [INF] Request finished HTTP/1.1 POST https://localhost:44301/api/file-management/file-descriptor/pre-upload-info application/json 115 - 200 - application/json;+charset=utf-8 105.2165ms 2022-03-07 13:25:42.415 +05:30 [INF] Request starting HTTP/1.1 POST https://localhost:44301/api/file-management/file-descriptor/upload?directoryId=fc2c84ea-a189-488b-0e43-3a02758d29af multipart/form-data;+boundary=----WebKitFormBoundaryKtGWHoQzMj1X60Gs 89705 2022-03-07 13:25:42.417 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.418 +05:30 [DBG] Found in the cache: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.418 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.418 +05:30 [DBG] Found in the cache: pn:R,pk:admin,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.418 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:Web_Erp,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.418 +05:30 [DBG] Found in the cache: pn:C,pk:Web_Erp,n:FileManagement.FileDescriptor 2022-03-07 13:25:42.419 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.FileDescriptor.Create 2022-03-07 13:25:42.419 +05:30 [DBG] Found in the cache: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.FileDescriptor.Create 2022-03-07 13:25:42.419 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:FileManagement.FileDescriptor.Create 2022-03-07 13:25:42.419 +05:30 [DBG] Found in the cache: pn:R,pk:admin,n:FileManagement.FileDescriptor.Create 2022-03-07 13:25:42.419 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:Web_Erp,n:FileManagement.FileDescriptor.Create 2022-03-07 13:25:42.419 +05:30 [DBG] Found in the cache: pn:C,pk:Web_Erp,n:FileManagement.FileDescriptor.Create 2022-03-07 13:25:42.420 +05:30 [INF] Executing endpoint 'Volo.FileManagement.Files.FileDescriptorController.CreateAsync (Volo.FileManagement.HttpApi)' 2022-03-07 13:25:42.421 +05:30 [INF] Route matched with {controller = "FileDescriptors", area = "fileManagement", action = "Create", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.FileManagement.Files.FileDescriptorDto] CreateAsync(System.Nullable1[System.Guid], Volo.FileManagement.Files.CreateFileInputWithStream) on controller Volo.FileManagement.Files.FileDescriptorController (Volo.FileManagement.HttpApi). 2022-03-07 13:25:42.437 +05:30 [INF] Executing StatusCodeResult, setting HTTP status code 415 2022-03-07 13:25:42.437 +05:30 [INF] Executed action Volo.FileManagement.Files.FileDescriptorController.CreateAsync (Volo.FileManagement.HttpApi) in 15.492ms 2022-03-07 13:25:42.437 +05:30 [INF] Executed endpoint 'Volo.FileManagement.Files.FileDescriptorController.CreateAsync (Volo.FileManagement.HttpApi)' 2022-03-07 13:25:42.464 +05:30 [DBG] Added 0 entity changes to the current audit log 2022-03-07 13:25:42.464 +05:30 [DBG] Added 0 entity changes to the current audit log 2022-03-07 13:25:42.469 +05:30 [INF] Request finished HTTP/1.1 POST https://localhost:44301/api/file-management/file-descriptor/upload?directoryId=fc2c84ea-a189-488b-0e43-3a02758d29af multipart/form-data;+boundary=----WebKitFormBoundaryKtGWHoQzMj1X60Gs 89705 - 415 0 - 54.4199ms 2022-03-07 13:25:42.486 +05:30 [INF] Request starting HTTP/1.1 GET https://localhost:44301/api/file-management/directory-descriptor/sub-directories - 0 2022-03-07 13:25:42.487 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.DirectoryDescriptor 2022-03-07 13:25:42.488 +05:30 [DBG] Found in the cache: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.DirectoryDescriptor 2022-03-07 13:25:42.488 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:FileManagement.DirectoryDescriptor 2022-03-07 13:25:42.488 +05:30 [DBG] Found in the cache: pn:R,pk:admin,n:FileManagement.DirectoryDescriptor 2022-03-07 13:25:42.488 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:Web_Erp,n:FileManagement.DirectoryDescriptor 2022-03-07 13:25:42.488 +05:30 [DBG] Found in the cache: pn:C,pk:Web_Erp,n:FileManagement.DirectoryDescriptor 2022-03-07 13:25:42.489 +05:30 [INF] Executing endpoint 'Volo.FileManagement.Directories.DirectoryDescriptorController.GetListAsync (Volo.FileManagement.HttpApi)' 2022-03-07 13:25:42.489 +05:30 [INF] Route matched with {area = "fileManagement", controller = "DirectoryDescriptors", action = "GetList", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.Abp.Application.Dtos.ListResultDto1[Volo.FileManagement.Directories.DirectoryDescriptorInfoDto]] GetListAsync(System.Nullable1[System.Guid]) on controller Volo.FileManagement.Directories.DirectoryDescriptorController (Volo.FileManagement.HttpApi). 2022-03-07 13:25:42.491 +05:30 [INF] Executing action method Volo.FileManagement.Directories.DirectoryDescriptorController.GetListAsync (Volo.FileManagement.HttpApi) - Validation state: "Valid" 2022-03-07 13:25:42.492 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.DirectoryDescriptor 2022-03-07 13:25:42.492 +05:30 [DBG] Found in the cache: pn:U,pk:67c4c1cc-c26f-edb3-c248-3a014664d1c8,n:FileManagement.DirectoryDescriptor 2022-03-07 13:25:42.492 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:FileManagement.DirectoryDescriptor 2022-03-07 13:25:42.492 +05:30 [DBG] Found in the cache: pn:R,pk:admin,n:FileManagement.DirectoryDescriptor 2022-03-07 13:25:42.492 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:Web_Erp,n:FileManagement.DirectoryDescriptor 2022-03-07 13:25:42.493 +05:30 [DBG] Found in the cache: pn:C,pk:Web_Erp,n:FileManagement.DirectoryDescriptor 2022-03-07 13:25:42.513 +05:30 [INF] Executed action method Volo.FileManagement.Directories.DirectoryDescriptorController.GetListAsync (Volo.FileManagement.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 21.8367ms. 2022-03-07 13:25:42.514 +05:30 [DBG] Added 0 entity changes to the current audit log 2022-03-07 13:25:42.514 +05:30 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.ListResultDto1[[Volo.FileManagement.Directories.DirectoryDescriptorInfoDto, Volo.FileManagement.Application.Contracts, Version=5.1.4.0, Culture=neutral, PublicKeyToken=null]]'. 2022-03-07 13:25:42.515 +05:30 [INF] Executed action Volo.FileManagement.Directories.DirectoryDescriptorController.GetListAsync (Volo.FileManagement.HttpApi) in 25.2799ms 2022-03-07 13:25:42.515 +05:30 [INF] Executed endpoint 'Volo.FileManagement.Directories.DirectoryDescriptorController.GetListAsync (Volo.FileManagement.HttpApi)' 2022-03-07 13:25:42.515 +05:30 [DBG] Added 0 entity changes to the current audit log

  • ABP Framework version: 5.1.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): Yes
  • Exception message and stack trace: 415 status code while uploading png/pdf file
  • Steps to reproduce the issue:"

Hello,

I have microservice architecture and I added NuGet packages of chat module in AdministrationService through ABP Suite. The chat module is successfully added to AdministrationService. I run the migration in the Administration service and the chat module's tables are created in the database of the administration service. I also install the npm packages of the chat module in the angular project and configure the routing and module as per documentation.

When I run the project, I am not able to see the enable chat on the setting page. Also, I checked the user's permission and the chat module are not listed. There is no exception in the project but the chat module is not visible on the Angular UI. The endpoints are there in SwaggerUI.

  • ABP Framework version: v5.0.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hello Team,

I have configured the microservice architecture. I have 5 microservices and I want to use Text Template Management Module in one of the microservice modules. The text template is based on angular UI instead of Razor configuration. I checked the many documents but was not able to find any related document to fetch the text template from the database and bind the model with the template using angular language.

The sample code or any document would be greatly appreciated.

Thanks

  • ABP Framework version: v5.0.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hello,

I have microservices architecture and I have integrated the Azure service bus and is working fine for all microservices. I have the below configuration.

Microservice 1

 "Azure": {
    "ServiceBus": {
      "Connections": {
        "Default": {
          "ConnectionString": "MyConnectionString"
        }
      }
    },
    "EventBus": {
      "ConnectionName": "Default",
      "SubscriberName": "MyProject_Subscriber",
      "TopicName": "MyProject_TopicName"
    }
  },

and having the same configuration in all other microservices.

Now the problem is, when a new entity is inserted in microservice 1 then it published the event to all microservices, and also I have a common TopicName for all the microservices. I want to integrate the below kind of configuration.

Example:

Microservice 1: Insert EntityA publish event to TopicNameA: Subscriber-only Microservice 2 Microservice 1: Insert EntityB publish event to TopicNameB: Subscriber-only: Microservice 2 and Microservice 3 Microservice 1: Insert EntityC publish event to TopicNameC: Subscriber-only: Microservice 4 Microservice 2: Insert EntityD publish event to "TopicNameD: Subscriber-only: Microservice 1

Basically, I want multiple topic names and dependent subscribers only for each microservices based on published events.

  • ABP Framework version: v5.0.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:No Exception
  • Steps to reproduce the issue:"

Hello Team,

I have one ABP application with the EntityFrameworkCore integration. I have created one module with MongoDB and integrated it with the existing application. I injected the ApplicationService, HttpApi, and MongoDB modules into the host application of the main application. With this configuration, when I run the application, I am getting the below exception in the application.

  • ABP Framework version: v4.3.2
  • UI type: Angular
  • DB provider: EF Core in application / MongoDB as Module
  • Tiered (MVC) or Identity Server Separated (Angular): yes, its separated
  • Exception message and stack trace:
  An error occurred during ConfigureServices phase of the module Test.MongoDB.TestMongoDbModule, Test.MongoDB,
Volo.Abp.AbpInitializationException: An error occurred during ConfigureServices phase of the module Test.MongoDB.TestMongoDbModule, Test.MongoDB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details.
---> System.MissingMethodException: Method not found: 'System.Collections.Generic.List`1&lt;System.Type&gt; Volo.Abp.DependencyInjection.AbpCommonDbContextRegistrationOptions.get_ReplacedDbContextTypes()'.
at Microsoft.Extensions.DependencyInjection.AbpMongoDbServiceCollectionExtensions.AddMongoDbContext[TMongoDbContext](IServiceCollection services, Action`1 optionsBuilder)
at Test.MongoDB.TestMongoDbModule.ConfigureServices(ServiceConfigurationContext context) in ..\MongoDbModule\src\Test.MongoDB\MongoDb\TestMongoDbModule.cs:line 32
at Volo.Abp.AbpApplicationBase.ConfigureServices()
--- End of inner exception stack trace ---
at Volo.Abp.AbpApplicationBase.ConfigureServices()
at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action`1 optionsAction)
at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action`1 optionsAction)
at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action`1 optionsAction)
at Volo.Abp.AbpApplicationFactory.Create[TStartupModule](IServiceCollection services, Action`1 optionsAction)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplication[TStartupModule](IServiceCollection services, Action`1 optionsAction)
at Test.Startup.ConfigureServices(IServiceCollection services) in ..\aspnet-core\src\Test.HttpApi.Host\Startup.cs:line 12
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.&lt;&gt;c__DisplayClass9_0.&lt;Invoke&gt;g__Startup|0(IServiceCollection serviceCollection)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.&lt;&gt;c__DisplayClass8_0.&lt;Build&gt;b__0(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.&lt;&gt;c__DisplayClass13_0.&lt;UseStartup&gt;b__0(HostBuilderContext context, IServiceCollection services)
at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at Test.Program.Main(String[] args)
  • Steps to reproduce the issue:" Add MongoDB module into the EFCore application.

Angular UI project is not authenticated. When I click on the login button, it redirects to the authentication server, I logged in then it's redirected back to the client project but it's not authenticated. I checked the network tab and the current user returns null and authorized false. When I open the authentication server, then it displays the current user logged in but the client is not authenticated.

  • ABP Framework version: v4.3.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:No Exception
  • Steps to reproduce the issue:"

Hi,

I have created the ABP microservices template project and configured the Azure Service Bus to integrate the event bus. I removed the RabbitMq injection from modules and configuration from appsettings. When I run the projects, I got the error of RabbitMq as microservices use the RabbitMq configuration for the background jobs (AbpBackgroundJobsRabbitMqModule) so I decide to put the RabbitMq integration again in the project.

My appsettings.json file has the below configuration.

"RabbitMQ": {
    "Connections": {
      "Default": {
        "HostName": "localhost"
      }
    },
    "EventBus": {
      "ClientName": "Project_AuthServer",
      "ExchangeName": "Project"
    }
  },
  "Azure": {
    "ServiceBus": {
      "Connections": {
        "Default": {
          "ConnectionString": "Endpoint=sb://mydomain.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey={{AccessKey}}"
        }
      }
    },
    "EventBus": {
      "ConnectionName": "Default",
      "SubscriberName": "Project_Subscriber",
      "TopicName": "Projecty_AuthServer"
    }
  },

So now, I have two configurations for the event bus, the Azure service bus, and RabbitMq but how it will work to publish and subscribe to the events? I want to use the Azure service bus for the publishing and subscription event bus for the microservices but BackgroundJobs needs configuration of RabbitMq as well.

Do we need to define the EventBus settings for the RabbitMq configuration?

  • ABP Framework version: v5.0.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi,

I have created a microservices project using the ABP Suite and configured it as per the documentation of the microservice template. When I run the web gateway, I cannot see all the endpoints of administration, identity service, and saas microservices. I checked the source code and compared the microservice template with the older version 4.4.0 and found the following code changes in the WebGateway Module file.

The older version 4.4.0 injected the below modules into the web gateway module.

[DependsOn(
        typeof(CoreSharedHostingGatewaysModule),
        typeof(ProductServiceHttpApiModule),
        typeof(AbpAccountPublicHttpApiModule),
        typeof(IdentityServiceHttpApiModule),
        typeof(SaasServiceHttpApiModule),
        typeof(AdministrationServiceHttpApiModule)
    )]
    public class CoreWebGatewayModule : AbpModule
    {}

In the newer version, 5.0.0 injected the below modules into the web gateway module.

[DependsOn(
        typeof(ChurchPharmacySharedHostingGatewaysModule),
        typeof(ProductServiceHttpApiModule)
    )]
    public class CoreWebGatewayModule : AbpModule
    {}

In the newer version, the administration, identity service, and saas module are not injected. Do we need to inject these three modules into the web gateway to use the endpoints of those modules? the appsettings.json file contains the route configuration of all these modules but endpoints are visible in the Swagger UI.

  • ABP Framework version: 5.0.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I have downloaded the latest source code from the Github repository and I successfully build the ABP framework and Azure Event bus sample code. I configured the azure connection string, topic name, and subscription. When I run the project, it throws the stack overflow exception. I debug the code and found the following issues.

public async Task PublishAsync(
        Type eventType,
        object eventData,
        bool onUnitOfWorkComplete = true,
        bool useOutbox = true)
    {
        if (onUnitOfWorkComplete && UnitOfWorkManager.Current != null)
        {
            AddToUnitOfWork(
                UnitOfWorkManager.Current,
                new UnitOfWorkEventRecord(eventType, eventData, EventOrderGenerator.GetNext(), useOutbox)
            );
            return;
        }
        if (useOutbox)
        {
            if (await AddToOutboxAsync(eventType, eventData))
            {
                return;
            }
        }
        await PublishToEventBusAsync(eventType, eventData);
    }`

In the above code, the value of UnitOfWorkManager.Current is null so it jumps to the second condition, and executes the AddToOutboxAsync method.

`private async Task<bool> AddToOutboxAsync(Type eventType, object eventData)
    {
        var unitOfWork = UnitOfWorkManager.Current;
        if (unitOfWork == null)
        {
            return false;
        }
        foreach (var outboxConfig in AbpDistributedEventBusOptions.Outboxes.Values)
        {
            if (outboxConfig.Selector == null || outboxConfig.Selector(eventType))
            {
                var eventOutbox = (IEventOutbox)unitOfWork.ServiceProvider.GetRequiredService(outboxConfig.ImplementationType);
                var eventName = EventNameAttribute.GetNameOrDefault(eventType);
                await eventOutbox.EnqueueAsync(
                    new OutgoingEventInfo(
                        GuidGenerator.Create(),
                        eventName,
                        Serialize(eventData),
                        Clock.Now
                    )
                );
                return true;
            }
        }
        return false;
    }

Again, in the above method, it checks the unit of work which is null so it returns false and PublishToEventBusAsync is executing and that method again calls the first publish method so the code executing into the loop and throws stack overflow exception.

I also tried to read the documents on azure event bus, the link redirects to 404 page.

Distributed-Event-Bus-Azure-Integration

I successfully integerated the RabbitMq integration in my project but we are planning to migrate into Azure service bus with ABP 5.0 version but it is in preview mode and documentation is not completed yet.

Thanks Imrankhan

  • ABP Framework version: v5.0.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:" Download the sample codes of azure service bus and run the console application.
Zobrazeno od 31 do 40 z celkem 42 záznamů
Made with ❤️ on ABP v8.2.0-preview Updated on března 25, 2024, 15:11