Base solution for your next web application

Activities of "csona"

Hi @ismcagdas

I have resolved this issue by removing an unwanted dependency on IWebHostEnvironment in {ProjectName}CoreModule.cs that was added by mistake.

However, I had misinterpreted the use of Migrator project. Actually I would like to migrate the data from one daabase to another. Normal processes like backup & restore or import/export of data would not work due to referntial integrity constraints. Can you please recommend any way to achieve this?

Thanks in advance.

Hi @ismcagdas,

Thanks for the reply.

Regarding database connection string in appsettings.json, it is clear now. Thanks.

Regarding the other error, it is not occuring in the default 10.2 project. The error is thrown before {ProjectName}CoreModule.PreInitialize method is called. So I am trying to check the dependencies in {ProjectName}.Core project and its dependencies. Could there be any other reason it is trying to load 'Microsoft.AspNetCore.Hosting.IWebHostEnvironment'?

The dependencies for {ProjectName}.EntityFrameworkCore is as follows:

Thanks.

Hi,

I am getting following error while running Migration project

Castle.MicroKernel.Handlers.HandlerException: 'Can't create component 'GrowthPlan.GrowthPlanCoreModule' as it has dependencies to be satisfied.

'GrowthPlan.GrowthPlanCoreModule' is waiting for the following dependencies:
- Service 'Microsoft.AspNetCore.Hosting.IWebHostEnvironment' which was not registered.
'

Also what connection string should I specify in app settings for Migrator project (source or destination database)?

Thanks in advance.

  • What is your product version?

    • 8.9
  • What is your product type (Angular or MVC)?

    • Angular
  • What is product framework type (.net framework or .net core)?

    • .Net Core
  • What is ABP Framework version?

    • 5.9

We are trying to update the project version to ASP.Net Zero 8.9. While following the steps from the following link - Version-Updating, we are able to complete the merge process but the files are not merged correctly.

It seems that the default git merge strategy (recursive) is not able to handle the merging in this case. Other git merge strategies also did not work properly in any case. We have tried following two approaches for merging

  • Using the latest project code in the base branch (master, dev), copying ASP.Net Zero 8.9 code in another (aspnetzero) branch, merging aspnetzero into dev
  • Using the ASP.Net Zero 8.9 code in base branch (master, dev), copying latest project code in another (migrate) branch, merging migrate into dev

The merge process complete successully but the code in destination branch gets removed in both the cases mentioned above. Can you please let us know a version update process that can work seamlessly?

Thanks in advance.

Hi @demirmusa ,

We are verifying the solution that you have mentioned above and it seems to be working fine. We'll do some more testing and update accordingly.

Thank you so much for your time and help.

Hi @demirmusa,

Thank you for your reply.

Pleaes find below the database details from the database backup that we had sent attached in the email (GrowthPlanDB.bak).

  • "DefaultStarterTenant" tenant has a role named "Full User" which has the permissions set as can be seen in the image below.

  • "Full User" role for above mentioned tenant has following permissions as per the database entries
    • Pages.Administration.AuditLogs
    • Pages.Administration
    • Pages
    • Pages.Administration.Tenant.Settings
    • Pages.Administration
    • Pages
    • Pages.Administration.UiCustomization
    • Pages.Administration
    • Pages
    • Pages.Tenant.Dashboard
    • Pages
    • Pages.DxDataGrid
    • Pages

Please let me know if we are misinterpreting or misunderstanding something.

Thanks.

Hi @ismcagdas,

Thank you for the update.

Hi @ismcagdas,

Thank you for the reply. I have sent an email with required details as you have requested to [email protected]

  • Archived copy of source code
  • Database backup file
  • Steps describing the user actions and problem
  • Other relevant images

Please let me know if you need anything else from our side.

Thanks again.

Following image shows the problem clearly

  • FullUser role (Role Id: 5) with defaulTenant (Tenant Id: 2) has 7 permissions in database.
  • While retrieving these permissions using RoleManager.GetGrantedPermissionsAsync, only 4 permissions are returned and the permission Pages.Tenant.Dashboard is not retrieved.

Can anybody please explain what is wrong with this or what am I missing? Thanks in advance.

This behavior is consistent for all the permissions that are tenant-specific (i.e. defined with multiTenancySides: MultiTenancySides.Tenant). All the permissions common to both host and tenant are retrieved correctly from GetGrantedPermissionsAsync.

Showing 11 to 20 of 27 entries