Starts in:
1 DAY
8 HRS
14 MIN
12 SEC
Starts in:
1 D
8 H
14 M
12 S
Open Closed

Hangfire Background Job Manager #8087


User avatar
0
nabass created

hi according to this artice https://abp.io/docs/8.2/framework/infrastructure/background-jobs/hangfire i followed the steps 1- Install-Package Volo.Abp.BackgroundJobs.HangFire 2- add package Hangfire.SqlServer --version 1.8.14 3- Configuration but i got this error so what are information from me to provided with to know the error ?

  • ABP Framework version: v8.0.2
  • UI Type:MVC
  • Database System: EF Core (SQL Server)

13 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ,

    Please refer this link https://github.com/realLiangshiwei/Lsw.Abp.BackgroundWorkers.Hangfire

    Thanks ,

  • User Avatar
    0
    nabass created

    hi anjali what should i do with githup?? and i used hangfir manager job not workers i just want to know the reason of this error and what should i do? i followed the steps as it is

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Can you please share error logs.

  • User Avatar
    0
    nabass created

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ,

    Please share your package.json file.

    Thanks,

  • User Avatar
    0
    nabass created

    hi do you mean that file or what ??

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    Yes this one only, I want to check the Leptonx version. It is also correct. Let me check again.

    Thanks

  • User Avatar
    0
    nabass created

    ok i'm waiting thanks

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Could you please share a test project with me? i will check it , thanks.

    shiwei.liang@volosoft.com

  • User Avatar
    0
    nabass created

    hi lian for company rights i can't share the project but i can explain what i did first of all i have multiproject modularity so i have web and web.public all my work within web layer *** WebModule file 1- i added this code typeof(AbpBackgroundJobsHangfireModule)

    2- ConfigureHangfire

    3- call this within ConfigureServices

    4-

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I guess this is a version confusion issue, could you share your csproj content?

  • User Avatar
    0
    nabass created

    <Project Sdk="Microsoft.NET.Sdk.Web">

    <Import Project="....\common.props" />

    <PropertyGroup Label="Globals"> <SccProjectName>SAK</SccProjectName> <SccProvider>SAK</SccProvider> <SccAuxPath>SAK</SccAuxPath> <SccLocalPath>SAK</SccLocalPath> </PropertyGroup>

    <PropertyGroup> <TargetFramework>net8.0</TargetFramework> <Nullable>enable</Nullable> <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel> <RootNamespace>Horizon.HorizonERP.Web</RootNamespace> <AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> <GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles> <MvcRazorExcludeRefAssembliesFromPublish>false</MvcRazorExcludeRefAssembliesFromPublish> <PreserveCompilationReferences>true</PreserveCompilationReferences> </PropertyGroup>

    <ItemGroup Condition="Exists('./openiddict.pfx')"> <None Remove="openiddict.pfx" /> <EmbeddedResource Include="openiddict.pfx"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </EmbeddedResource> <ProjectReference Include="....\modules\Horizon.MainSetting\src\Horizon.MainSetting.Web\Horizon.MainSetting.Web.csproj" /><ProjectReference Include="....\modules\Horizon.HRMS1\src\Horizon.HRMS1.Web\Horizon.HRMS1.Web.csproj" /><ProjectReference Include="....\modules\Horizon.HRMS2\src\Horizon.HRMS2.Web\Horizon.HRMS2.Web.csproj" /><ProjectReference Include="....\modules\Horizon.MainAccounting\src\Horizon.MainAccounting.Web\Horizon.MainAccounting.Web.csproj" /><ProjectReference Include="....\modules\Horizon.CoreSetting\src\Horizon.CoreSetting.Web\Horizon.CoreSetting.Web.csproj" /><ProjectReference Include="....\modules\Horizon.Inventory\src\Horizon.Inventory.Web\Horizon.Inventory.Web.csproj" /><ProjectReference Include="....\modules\Horizon.EInvoice\src\Horizon.EInvoice.Web\Horizon.EInvoice.Web.csproj" /><ProjectReference Include="....\modules\Horizon.POS\src\Horizon.POS.Web\Horizon.POS.Web.csproj" /></ItemGroup>

    <ItemGroup> <Compile Remove="Bundling\Reporting\Controllers*" /> <Compile Remove="Logs*" /> <Content Remove="Bundling\Reporting\Controllers*" /> <Content Remove="Logs*" /> <EmbeddedResource Remove="Bundling\Reporting\Controllers*" /> <EmbeddedResource Remove="Logs*" /> <None Remove="Bundling\Reporting\Controllers*" /> <None Remove="Logs*" /> </ItemGroup>

    <ItemGroup> <Content Include="Pages**.js"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </Content> <Content Include="Pages**.css"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </Content> </ItemGroup> <PropertyGroup> <ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles> </PropertyGroup> <ItemGroup> <None Include="Themes\LeptonX\Components\Common\GeneralSettings\Default.cshtml" /> <None Include="Themes\LeptonX\Components\Common\MobileGeneralSettings\Default.cshtml" /> </ItemGroup>

    <ItemGroup> <PackageReference Include="AspNetCore.HealthChecks.UI" Version="7.0.2" /> <PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="7.1.0" /> <PackageReference Include="DevExpress.AspNetCore.Reporting" Version="23.2.4" /> <PackageReference Include="DevExtremeAI" Version="8.0.0" /> <PackageReference Include="Hangfire.SqlServer" Version="1.8.14" /> <PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.0" /> <PackageReference Include="AspNetCore.HealthChecks.UI.InMemory.Storage" Version="7.0.0" /> <PackageReference Include="Serilog.AspNetCore" Version="8.0.0" /> <PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="8.0.0" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="8.0.0" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="8.0.0" /> <PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="8.0.0" /> <PackageReference Include="DistributedLock.Redis" Version="1.0.2" /> <PackageReference Include="Volo.Abp.BackgroundJobs.HangFire" Version="8.2.0" /> </ItemGroup>

    <ItemGroup> <PackageReference Include="Volo.Payment.Admin.Web" Version="8.0.2" /> <PackageReference Include="Volo.Payment.Alipay.Web" Version="8.0.2" /> <PackageReference Include="Volo.Payment.Iyzico.Web" Version="8.0.2" /> <PackageReference Include="Volo.Payment.PayPal.Web" Version="8.0.2" /> <PackageReference Include="Volo.Payment.Payu.Web" Version="8.0.2" /> <PackageReference Include="Volo.Payment.Stripe.Web" Version="8.0.2" /> <PackageReference Include="Volo.Payment.TwoCheckout.Web" Version="8.0.2" /> <PackageReference Include="Volo.Payment.Web" Version="8.0.2" /> <ProjectReference Include="..\Horizon.HorizonERP.Application\Horizon.HorizonERP.Application.csproj" /> <PackageReference Include="Volo.Abp.Caching.StackExchangeRedis" Version="8.0.2" /> <PackageReference Include="Volo.Abp.DistributedLocking" Version="8.0.2" /> <ProjectReference Include="..\Horizon.HorizonERP.HttpApi\Horizon.HorizonERP.HttpApi.csproj" /> <ProjectReference Include="..\Horizon.HorizonERP.EntityFrameworkCore\Horizon.HorizonERP.EntityFrameworkCore.csproj" /> <PackageReference Include="Volo.Abp.Autofac" Version="8.0.2" /> <PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="8.0.2" /> <PackageReference Include="Volo.Abp.AspNetCore.Authentication.JwtBearer" Version="8.0.2" /> <PackageReference Include="Volo.Abp.Swashbuckle" Version="8.0.2" /> <PackageReference Include="Volo.Abp.FeatureManagement.Web" Version="8.0.2" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.OpenIddict" Version="8.0.2" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.Web" Version="8.0.2" /> <PackageReference Include="Volo.Abp.AuditLogging.Web" Version="8.0.2" /> <PackageReference Include="Volo.Abp.Identity.Pro.Web" Version="8.0.2" /> <PackageReference Include="Volo.Abp.OpenIddict.Pro.Web" Version="8.0.2" /> <PackageReference Include="Volo.Abp.LanguageManagement.Web" Version="8.0.2" /> <PackageReference Include="Volo.Saas.Host.Web" Version="8.0.2" /> <PackageReference Include="Volo.Abp.TextTemplateManagement.Web" Version="8.0.2" /> <PackageReference Include="Volo.Abp.Gdpr.Web" Version="8.0.2" /> <PackageReference Include="Volo.CmsKit.Pro.Admin.Web" Version="8.0.2" /> </ItemGroup>

    <ItemGroup> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="3.0.-" /> </ItemGroup>

    <ItemGroup> <Folder Include="wwwroot\images\employee&quot; /> <Folder Include="wwwroot\images\paymentMethod&quot; /> </ItemGroup>

    </Project>

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    This is the problem, you should use version 8.0.2

    <PackageReference Include="Volo.Abp.BackgroundJobs.HangFire" Version="8.2.0" />
    </ItemGroup>
    
    <ItemGroup>
    <PackageReference Include="Volo.Payment.Admin.Web" Version="8.0.2" />
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06