Starts in:
0 DAY
8 HRS
50 MIN
40 SEC
Starts in:
0 D
8 H
50 M
40 S
Open Closed

I have one template project on base packages of abp 4.2.1 then I migrated that to 8.3.1 with abp commertial version. I have some wrapper functions which are on top of the abp but in .net core 8 getting some of the dependency related issue for back.jobs #8274


User avatar
0
nayan.ranjane@softtech-engr.com created
  • ABP Framework version: v8.3.1
  • UI Type: MVC
  • Database System: EF Core (SQL Server.)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue: *Will share you Sample Template project on mail

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

    Hi,

    I can't build this solution

  • User Avatar
    0

    Shared you on mail

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Method 'GetServiceProviderHashCode' in type 'ExtensionInfo' from assembly 'Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite, Version=5.0.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' does not have an implementation.

    Method 'GetServiceProviderHashCode' in type 'ExtensionInfo' from assembly 'EntityFrameworkCore.SqlServer.HierarchyId, Version=2.1.0.0, Culture=neutral, PublicKeyToken=0c30ba8633cb7b1e' does not have an implementation

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Please upgrade all microsoft packages to the 8.0.x

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    And your solution miss some module dependencies

    Add AbpFeatureManagementEntityFrameworkCoreModule to CivitEntityFrameworkCoreModule

  • User Avatar
    0

    Still there are errors my side if your project is running smoothly please share with me Is it neccessory to use feature management and background job related modules to implement if there is no use in my project

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Still there are errors my side if your project is running smoothly please share with me

    what error?

    Is it neccessory to use feature management and background job related modules to implement if there is no use in my project

    you can remove them if they are not necessary for you

  • User Avatar
    0

    Removed permission management and feature but getting above error

  • User Avatar
    0

    Shared you current code on mail

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Permission management module is a basic module, and identity module depends on it. if you don't want use permission management you have to remove identity module too

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Comment typeof(AbpBackgroundJobsDomainModule)

  • User Avatar
    0

    Hi,

    Permission management module is a basic module, and identity module depends on it. if you don't want use permission management you have to remove identity module too

    1. So is it necessary to have tables for them like following.
    2. According to the project given by me to you I want localization, Caching, Exception Handling So which are required and dependent packages for them. Because its taking too much time to solve one issue there is no fixed documentation which provide dependencies of other packages.
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    So is it necessary to have tables for them like following.

    yes, it's. otherwise, you need to delete the identity module too.

    According to the project given by me to you I want localization, Caching, Exception Handling So which are required and dependent packages for them. Because its taking too much time to solve one issue there is no fixed documentation which provide dependencies of other packages.

    Hi, usually the documentation will mention the required packages:

    • https://abp.io/docs/latest/framework/fundamentals/localization
    • https://abp.io/docs/latest/framework/fundamentals/caching
    • https://abp.io/docs/latest/framework/fundamentals/exception-handling

    Exception handing is a part feature of Volo.Abp.AspNetCore.Mvc package

  • User Avatar
    0

    es, it's. otherwise, you need to delete the identity module too.

    If my identity server is different I just want authentication and authorization working on this api so do i Need identity module or not. I already have identity server with identity module which i am using for the authentication purpose.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    if you need to use the identityuser/roles etc.. and its endpoints in this project, you need to keep it, as I see, you don't need it (You need to evaluate carefully).

  • User Avatar
    0

    So If i have added permission module over there getting tables not present error how to add migration of all tables required for my project because If I run migration command on ef getting following error

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I think the message is clear, you have to install Microsoft.EntityFrameworkCore.Design package.

  • User Avatar
    0

    Still there are multiple error added migration permission tables now getting dependecy error for the audit logging module sharing you logs. It will be helpfull if you share me modified code which will be error free

    10:53:45 INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule [10:53:45 DBG] Started background worker: Volo.Abp.IdentityServer.Tokens.TokenCleanupBackgroundWorker [10:53:45 INF] Initialized all ABP modules. [10:53:45 INF] Now listening on: https://localhost:5001 [10:53:45 INF] Now listening on: http://localhost:5000 [10:53:45 INF] Application started. Press Ctrl+C to shut down. [10:53:45 INF] Hosting environment: Development [10:53:45 INF] Content root path: D:\MyWorkspace\CivitCoreTemplate\Civit.Core.Template\Host\Civit.Core.Template\Civit.Core.Template.HttpApi.Host [10:53:46 ERR] An exception was thrown while activating Volo.Abp.Auditing.AuditingManager -> Volo.Abp.Auditing.AuditingHelper -> Volo.Abp.AuditLogging.AuditingStore. Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.Auditing.AuditingManager -> Volo.Abp.Auditing.AuditingHelper -> Volo.Abp.AuditLogging.AuditingStore. ---> Autofac.Core.DependencyResolutionException: None of the constructors found on type 'Volo.Abp.AuditLogging.AuditingStore' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.AuditLogging.IAuditLogRepository auditLogRepository' of constructor 'Void .ctor(Volo.Abp.AuditLogging.IAuditLogRepository, Volo.Abp.Uow.IUnitOfWorkManager, Microsoft.Extensions.Options.IOptions`1[Volo.Abp.Auditing.AbpAuditingOptions], Volo.Abp.AuditLogging.IAuditLogInfoToAuditLogConverter)'.

    See https://autofac.rtfd.io/help/no-constructors-bindable for more info. at Autofac.Core.Activators.Reflection.ReflectionActivator.<>c__DisplayClass14_0.

    [10:53:46 INF] Request starting HTTP/2 GET https://localhost:5001/swagger/index.html - null null [10:53:47 INF] Request finished HTTP/2 GET https://localhost:5001/swagger/index.html - 200 null text/html;charset=utf-8 310.5244ms [10:53:47 INF] Request starting HTTP/2 GET https://localhost:5001/_framework/aspnetcore-browser-refresh.js - null null [10:53:47 INF] Request finished HTTP/2 GET https://localhost:5001/_framework/aspnetcore-browser-refresh.js - 200 13800 application/javascript; charset=utf-8 3.627ms [10:53:47 INF] Request starting HTTP/2 GET https://localhost:5001/_vs/browserLink - null null [10:53:47 INF] Request finished HTTP/2 GET https://localhost:5001/_vs/browserLink - 200 null text/javascript; charset=UTF-8 27.9902ms [10:53:47 INF] Request starting HTTP/2 GET https://localhost:5001/swagger/v1/swagger.json - null null [10:53:47 INF] Request finished HTTP/2 GET https://localhost:5001/swagger/v1/swagger.json - 200 null application/json;charset=utf-8 93.7021ms

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Cannot resolve parameter 'Volo.Abp.AuditLogging.IAuditLogRepository auditLogRepository' of constructor 'Void .ctor(Volo.Abp.AuditLogging.IAuditLogRepository, Volo.Abp.Uow.IUnitOfWorkManager,

    It seems that the audit module dependencies are missing. you can add Volo.Abp.AuditLogging.EntityframeworkCore module or remove all Audit logger module packages.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Getting dependecy error on controller for Distributed Cache But I have registered that in DI container Step to reproduce the issue: run project and hit any controller of the API

    You certainly cannot inject the services, I see that you have customized too many things.

    Add services.AddScoped(typeof(ICivitDistributedCache<>), typeof(CivitDistributedCache<>)); to ConfigureDI

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    This is not easy work. you must have a deep understanding of ABP.

    Many built-in features of ABP may not work, you need to carefully check the implementation of ABP.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06