[09:43:29 INF] End processing HTTP request after 322.8505ms - 200 [09:43:29 INF] Received HTTP response headers after 17944.825ms - 200 [09:43:29 INF] End processing HTTP request after 17952.9452ms - 200 [09:43:39 INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy Stack overflow. at System.RuntimeTypeHandle.GetInstantiation(System.Runtime.CompilerServices.QCallTypeHandle, System.Runtime.CompilerServices.ObjectHandleOnStack, BOOL) at System.Type.get_GenericTypeArguments() at Volo.Abp.Reflection.TypeHelper.IsEnumerable(System.Type, System.Type ByRef, Boolean) at Volo.Abp.AspNetCore.Mvc.AspNetCoreApiDescriptionModelProvider.AddCustomTypesToModel(Volo.Abp.Http.Modeling.ApplicationApiDescriptionModel, System.Type) at Volo.Abp.AspNetCore.Mvc.AspNetCoreApiDescriptionModelProvider.AddCustomTypesToModel(Volo.Abp.Http.Modeling.ApplicationApiDescriptionModel, System.Type) at Volo.Abp.AspNetCore.Mvc.AspNetCoreApiDescriptionModelProvider.AddCustomTypesToModel(Volo.Abp.Http.Modeling.ApplicationApiDescriptionModel, System.Type) ...... ...... at Volo.Abp.AspNetCore.Mvc.AspNetCoreApiDescriptionModelProvider.AddCustomTypesToModel(Volo.Abp.Http.Modeling.ApplicationApiDescriptionModel, System.Type) at Volo.Abp.AspNetCore.Mvc.AspNetCoreApiDescriptionModelProvider.AddCustomTypesToModel(Volo.Abp.Http.Modeling.ApplicationApiDescriptionModel, System.Reflection.MethodInfo) at Volo.Abp.AspNetCore.Mvc.AspNetCoreApiDescriptionModelProvider.AddApiDescriptionToModel(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription, Volo.Abp.Http.Modeling.ApplicationApiDescriptionModel, Volo.Abp.Http.Modeling.ApplicationApiDescriptionModelRequestDto) at Volo.Abp.AspNetCore.Mvc.AspNetCoreApiDescriptionModelProvider.CreateApiModel(Volo.Abp.Http.Modeling.ApplicationApiDescriptionModelRequestDto) at Volo.Abp.AspNetCore.Mvc.ApiExploring.AbpApiDefinitionController.Get(Volo.Abp.Http.Modeling.ApplicationApiDescriptionModelRequestDto) at DynamicClass.lambda_method8454(System.Runtime.CompilerServices.Closure, System.Object, System.Object[]) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+SyncObjectResultExecutor.Execute(Microsoft.AspNetCore.Mvc.ActionContext, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultTypeMapper, Microsoft.Extensions.Internal.ObjectMethodExecutor, System.Object, System.Object[]) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State ByRef, Scope ByRef, System.Object ByRef, Boolean ByRef) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAwaitedAsync() at Volo.Abp.AspNetCore.Mvc.Uow.AbpUowActionFilter+<OnActionExecutionAsync>d__0.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Volo.Abp.AspNetCore.Mvc.Uow.AbpUowActionFilter+<OnActionExecutionAsync>d__0, Volo.Abp.AspNetCore.Mvc, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null]](<OnActionExecutionAsync>d__0 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Volo.Abp.AspNetCore.Mvc.Uow.AbpUowActionFilter+<OnActionExecutionAsync>d__0, Volo.Abp.AspNetCore.Mvc, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null]](<OnActionExecutionAsync>d__0 ByRef) at Volo.Abp.AspNetCore.Mvc.Uow.AbpUowActionFilter.OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State ByRef, Scope ByRef, System.Object ByRef, Boolean ByRef) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAwaitedAsync() at Volo.Abp.AspNetCore.Mvc.Validation.AbpValidationActionFilter+<OnActionExecutionAsync>d__0.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Volo.Abp.AspNetCore.Mvc.Validation.AbpValidationActionFilter+<OnActionExecutionAsync>d__0, Volo.Abp.AspNetCore.Mvc, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null]](<OnActionExecutionAsync>d__0 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Volo.Abp.AspNetCore.Mvc.Validation.AbpValidationActionFilter+<OnActionExecutionAsync>d__0, Volo.Abp.AspNetCore.Mvc, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null]](<OnActionExecutionAsync>d__0 ByRef) at Volo.Abp.AspNetCore.Mvc.Validation.AbpValidationActionFilter.OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State ByRef, Scope ByRef, System.Object ByRef, Boolean ByRef) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAwaitedAsync() at Volo.Abp.AspNetCore.Mvc.Features.AbpFeatureActionFilter+<OnActionExecutionAsync>d__0.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Volo.Abp.AspNetCore.Mvc.Features.AbpFeatureActionFilter+<OnActionExecutionAsync>d__0, Volo.Abp.AspNetCore.Mvc, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null]](<OnActionExecutionAsync>d__0 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Volo.Abp.AspNetCore.Mvc.Features.AbpFeatureActionFilter+<OnActionExecutionAsync>d__0, Volo.Abp.AspNetCore.Mvc, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null]](<OnActionExecutionAsync>d__0 ByRef) at Volo.Abp.AspNetCore.Mvc.Features.AbpFeatureActionFilter.OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State ByRef, Scope ByRef, System.Object ByRef, Boolean ByRef) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAwaitedAsync() at Volo.Abp.AspNetCore.Mvc.Response.AbpNoContentActionFilter+<OnActionExecutionAsync>d__0.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Volo.Abp.AspNetCore.Mvc.Response.AbpNoContentActionFilter+<OnActionExecutionAsync>d__0, Volo.Abp.AspNetCore.Mvc, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null]](<OnActionExecutionAsync>d__0 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Volo.Abp.AspNetCore.Mvc.Response.AbpNoContentActionFilter+<OnActionExecutionAsync>d__0, Volo.Abp.AspNetCore.Mvc, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null]](<OnActionExecutionAsync>d__0 ByRef) at Volo.Abp.AspNetCore.Mvc.Response.AbpNoContentActionFilter.OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State ByRef, Scope ByRef, System.Object ByRef, Boolean ByRef) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAwaitedAsync() at Volo.Abp.AspNetCore.Mvc.Auditing.AbpAuditActionFilter+<OnActionExecutionAsync>d__0.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Volo.Abp.AspNetCore.Mvc.Auditing.AbpAuditActionFilter+<OnActionExecutionAsync>d__0, Volo.Abp.AspNetCore.Mvc, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null]](<OnActionExecutionAsync>d__0 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Volo.Abp.AspNetCore.Mvc.Auditing.AbpAuditActionFilter+<OnActionExecutionAsync>d__0, Volo.Abp.AspNetCore.Mvc, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null]](<OnActionExecutionAsync>d__0 ByRef) at Volo.Abp.AspNetCore.Mvc.Auditing.AbpAuditActionFilter.OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State ByRef, Scope ByRef, System.Object ByRef, Boolean ByRef) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAwaitedAsync() at Volo.Abp.AspNetCore.Mvc.GlobalFeatures.GlobalFeatureActionFilter+<OnActionExecutionAsync>d__0.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Volo.Abp.AspNetCore.Mvc.GlobalFeatures.GlobalFeatureActionFilter+<OnActionExecutionAsync>d__0, Volo.Abp.AspNetCore.Mvc, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null]](<OnActionExecutionAsync>d__0 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Volo.Abp.AspNetCore.Mvc.GlobalFeatures.GlobalFeatureActionFilter+<OnActionExecutionAsync>d__0, Volo.Abp.AspNetCore.Mvc, Version=8.3.1.0, Culture=neutral, PublicKeyToken=null]](<OnActionExecutionAsync>d__0 ByRef) at Volo.Abp.AspNetCore.Mvc.GlobalFeatures.GlobalFeatureActionFilter.OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State ByRef, Scope ByRef, System.Object ByRef, Boolean ByRef) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State ByRef, Scope ByRef, System.Object ByRef, Boolean ByRef) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAwaitedAsync() at Microsoft.AspNetCore.Mvc.Controller.OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State ByRef, Scope ByRef, System.Object ByRef, Boolean ByRef) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State ByRef, Scope ByRef, System.Object ByRef, Boolean ByRef) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State ByRef, Scope ByRef, System.Object ByRef, Boolean ByRef) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextResourceFilter() at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State ByRef, Scope ByRef, System.Object ByRef, Boolean ByRef) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeAsync()
there are many more lines.
Hi
I am unable to connect to my application API. I have 3 issues. 1 If I set the application method to [AllowAnonymous], I van use postman to get a token, and receive a response. When I debug the Application method, the system does not decode the Token, resulting in the CurrentUser = NULL I do decode the Tenant info. This may be some ware between ABP framework migration from V3 to 4 to 5 to 6 to 7 to 8.3.3
2 When I use the shell cmd : abp generate-proxy -t csharp -u https://localhost:44334/ my application breaks with the following error. System.StackOverflowException Looking for file /_/src/libraries/System.Private.CoreLib/src/System/Type.cs please select file. Exception message and full stack trace - added below
So I created a new test application and added one entity "ApiParameters". I then added a new copy of the module "Integration" into the application I added all the references and Dependencies. The new application has full access to the module can use all methods for all 12 entities. When I use the shell cmd : abp generate-proxy -t csharp -u https://localhost:44381/ only the "ApiParameters" proxies are added to the ClientProxies folder. This is the 3rd issue.
3 I am unable to generate client proxies for a module application "Integration", only the host "ApiParameters" proxy. Is there a missing parameter?
Please, are you able to assist?
Thanks and regards Tony
Hi
I get IsJobExecutionEnable = false
?context.ServiceProvider.GetRequiredService<IOptions<AbpBackgroundJobOptions>>().Value.IsJobExecutionEnabled false
The only place that options.IsJobExecutionEnabled = false ; is in the DbMigratorModule
I changed that to true, which did not remedy the problem
So to fix this, I added the following to my ApplicationModule
Configure<AbpBackgroundJobOptions>(options =>
{
options.IsJobExecutionEnabled = true;
});
Now the backgroundJobs jobs are running
Somehow the default is disabled, when upgrading to version 7 and 8
It would be best to note this, or investigate further.
Best regards Tony
Thanks
I will add a BackgroundJobWorker to the domain module.
I will let you know how it goes 👍
Regards Tony
Hi
I have enabled NuGet.org Symbol. I have disabled Disable Just My Code for debugging. I have verified Source Link support is checked.
Cool 👍 Now how do I get Volo.Abp.BackgroundJobs to run, so that I can debug?
Thanks and regards Tony
Thanks liangshiwei
I will look at the github link and se what I can do.
Thanks and regards Tony
Hi
When I upgraded form version 6.0.3 to 7.4.2, my background jobs are no longer been run None of the 20 ExecuteAsync methods are been triggered. I have 3 user modules with background Jobs. I removed the three modules to see if this may cause issues with the version 7 and 8 updates. This did not resolve any issues.
No log errors and no warnings logged.
This problem is on the development environment and the Live test server.
Has there been any changes, or encasements, for the default implementation for Background Jobs? None of my 20 background jobs are been run after the upgrade. The ExecuteAsync methods are never called.
From the database table AbpBackgroundJobs, none of the LastTryTime fields are populated,0 nor the TryCounts are updated.
JobName = RequerstToBook JobArgs = (Correct json data has been filled) TryCount =0 NextTryTime = correct data and time (earlier today) LastTryTime = NULL IsAbandoned = 0 Priority = 15
This one of my job arguments
[BackgroundJobName("RequerstToBook")]
public class RequestToBookArgs
{
public string TenantName { get; set; }
public Guid TenantId { get; set; }
public Guid UserId { get; set; }
public string UserName { get; set; }
public Guid TravelRequestId { get; set; }
public Guid SupplierId { get; set; }
public Guid SupplierContactId { get; set; }
public Guid QuoteId { get; set; }
public List<Guid> LineItems { get; set; }
public string NoteToTMC { get; set; }
}
and this is the background job
public class RequestToBookJob : AsyncBackgroundJob<RequestToBookArgs>, ITransientDependency
{
private readonly IRequestForQuotesAppService _requestForQuotesAppService;
private readonly IEmailSender _emailSender;
private readonly ICurrentTenant _currentTenant;
private readonly IMailBotAppService _mailBotAppService;
public RequestToBookJob(
IEmailSender emailSender,
ICurrentTenant currentTenant,
IMailBotAppService mailBotAppService,
IRequestForQuotesAppService requestForQuotesAppService)
{
_emailSender = emailSender;
_currentTenant = currentTenant;
_mailBotAppService = mailBotAppService;
_requestForQuotesAppService = requestForQuotesAppService;
}
public override async Task ExecuteAsync(RequestToBookArgs args)
{
var watch = new System.Diagnostics.Stopwatch();
watch.Start();
var Comment = await ProcessRequestToBookAsync(args);
watch.Stop();
}
private async Task<string> ProcessRequestToBookAsync(RequestToBookArgs args)
{
var result = await _requestForQuotesAppService.GenerateRequestToBook(args);
return result;
}
}
I have now added a AbpBackgroundJobWorkerOptions to me ApplicationModule. this did not resolve the issue
Configure<AbpBackgroundJobWorkerOptions>(options =>
{
options.DefaultTimeout = 3600;
});
in ApplicationNameTestBaseModule : AbpModule
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpBackgroundJobOptions>(options =>
{
options.IsJobExecutionEnabled = false;
});
context.Services.AddAlwaysAllowAuthorization();
}
I have now updated to version 8.0.2 to see if this fixes the issue, and still no change.
I then created a ne app and added one Background job for testing. BackgroundsJods run in this app.
I compared all library referenced and don't see ant differences between the two applications. Core and new code associated to background Jobs.
How can I see if the background service is querying the database?
How can I resolve this issue?
Thanks and regards Tony
Hi
I have edited all .suite\entity files, and replacing all EnumValues : null values and replaced with numeric values.
To fix the problem In ABP Suite web UI, where the entity dropdown list was not loading, I had to then remove the project from ABP Suite, shut it down, reload and then re-add as an existing project.
I can now open the project within ABP Suite.
Could you please reverse the Question asked deduction, and credit my count as this was an ABP Suite problem :)
All the best
Regards Tony
Hi
Last night I have found the problem.
I moved all files from the folder .suite/entities. I can then open the application using ABP Suite. I have 99 entities. I started moving the files back 10 at a time. I eventually found one that caused the error.
I then removed all others and left the first entity file causing the error. That entity has 10 properties. Removing them all allowed ABP Suite to open the project.
Then adding the entities back one by one, I found that a property with Type 'enum' was causing the problem.
I created a new project using version 7.4.2 Created an enum within the new project. I then added an entity with a enum property
I compared the two and found the problem
When I created the entities using ABP Suite between version 3 and 6, this is what the entity property EnumValues are
"EnumValues": { "Delivery": null, "Physical": null, "Postal": null },
When I change them and change the null to valid values as below, it works
"EnumValues": { "Delivery": 0, "Physical": 1, "Postal": 2 },
So, all I have to do is open all 99 entities, and lookup the valid Entity Values and update all the files, it should work.
You may want to change the ABP Suite code to allow for null as an enum entity value
There are still more issues. I will update once identified. In ABP Suite web UI, the entity dropdown list is still not loading
Thanks and regards Tony
To fix this error, I had to Roll back all Volo. packaged to 7.4.2
[11:29:54 INF] Starting web host.
[11:30:15 FTL] Host terminated unexpectedly!
Volo.Abp.AbpInitializationException: An error occurred during ConfigureServicesAsync phase of the module Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule, Volo.Abp.Identity.EntityFrameworkCore, Version=7.4.2.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details.
---> System.TypeLoadException: Method 'GetRolesAsync' in type 'Volo.Abp.Identity.EntityFrameworkCore.EfCoreOrganizationUnitRepository' from assembly 'Volo.Abp.Identity.EntityFrameworkCore, Version=7.4.2.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule.<>c.<ConfigureServices>b__0_0(IAbpDbContextRegistrationOptionsBuilder options)
at Microsoft.Extensions.DependencyInjection.AbpEfCoreServiceCollectionExtensions.AddAbpDbContext[TDbContext](IServiceCollection services, Action1 optionsBuilder) at Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule.ConfigureServices(ServiceConfigurationContext context) at Volo.Abp.Modularity.AbpModule.ConfigureServicesAsync(ServiceConfigurationContext context) at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync() --- End of inner exception stack trace --- at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync() at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action
1 optionsAction)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action
1 optionsAction)
at ITX.Web.Program.Main(String[] args) in F:\ITX_New\src\ITX.Web\Program.cs:line 37