Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "DanielNikolic"

Product version: 10.3.0 Product type: Angular Product framework type: .net core ABP Framework version: 6.3.1.0

When I run the rad tool to add a component, the backend code is generated correctly, but in the frontend only a template class is added and not filled in. I dont' understand why?

// import {NgModule} from '@angular/core';
// import {AppSharedModule} from '@app/shared/app-shared.module';
// import {AdminSharedModule} from '@app/admin/shared/admin-shared.module';

// import {{{Master_Detail_Child_Prefix_Here}}UnitOfMeasuresComponent} from './{{master_Detail_Child_Prefix_Here}}unitOfMeasures.component';
// import {{{Master_Detail_Child_Prefix_Here}}CreateOrEditUnitOfMeasureComponent} from './{{master_Detail_Child_Prefix_Here}}create-or-edit-unitOfMeasure.component';
// import {{{Master_Detail_Child_Prefix_Here}}ViewUnitOfMeasureComponent} from './{{master_Detail_Child_Prefix_Here}}view-unitOfMeasure.component';

// {{Import_Child_Module_Here}}

// @NgModule({
//     declarations: [
//         {{Master_Detail_Child_Prefix_Here}}UnitOfMeasuresComponent,
//         {{Master_Detail_Child_Prefix_Here}}CreateOrEditUnitOfMeasureComponent,
//         {{Master_Detail_Child_Prefix_Here}}ViewUnitOfMeasureComponent,
        
//     ],
//     imports: [AppSharedModule , AdminSharedModule {{Use_Import_Child_Module_Here}}],
    
// })
// export class {{Master_Detail_Child_Prefix_Here}}UnitOfMeasureModule {
// }

Do I have to execute some extra steps I'm missing or am I doing something wrong?

Product version: 10.3.0 Product type: Angular Product framework type: .net core ABP Framework version: 6.3.0.0

I'm in the process of implementing import functionality, but the AsyncBackgroundJob's ExecuteAsync is not being called, a exception is happening inside Abp.BackgroundJobs.BackgroundJobManager but I can't step into that part of the code base. Here are the steps I take when I compe up against this issue:

  1. I go to users and import an excel file
  2. The thread executes ImportFromExcel(), the file is saved inside the database, everything appears to be going correctly
  3. The constructor of the background job is called, so BackgroundJobManager is instantiating the job
  4. ExecuteAsync is never called. ImportUsersToExcelJob is being instantiated repeatedly by BackgroundJobManager in the background but ExecuteAsync is never called.

If I look in the Logs.txt, I see the following exception when BackgroundJobManager attempts to run the job

SELECT TOP(@__p_1) [a].[Id], [a].[CreationTime], [a].[CreatorUserId], [a].[IsAbandoned], [a].[JobArgs], [a].[JobType], [a].[LastTryTime], [a].[NextTryTime], [a].[Priority], [a].[TryCount] FROM [AbpBackgroundJobs] AS [a] WHERE ([a].[IsAbandoned] <> CAST(1 AS bit)) AND ([a].[NextTryTime] <= @__Now_0) ORDER BY [a].[Priority] DESC, [a].[TryCount], [a].[NextTryTime] WARN 2021-11-23 09:59:47,962 [4 ] Abp.BackgroundJobs.BackgroundJobManager - Object does not match target type. System.Reflection.TargetException: Object does not match target type. at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target) at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Abp.BackgroundJobs.BackgroundJobManager.TryProcessJobAsync(BackgroundJobInfo jobInfo)

An exception is being thrown in BackgroundJobManager. Why is this exception being thrown? Is there a serialization/parsing error happening somewhere? I've tried changing ImportUsersFromExcelJobArgs to a simpler object. I've tried adding [Serializable] to it as well, but it doesn't seem to help.

If you've got any ideas, I'd appreciate it.

Showing 1 to 2 of 2 entries