We have around 190 permission in the [dbo].[AbpPermissions] table with 5 roles, we dont use explicitly claims , it is more users/roles/permissions structure .
The dynamic proxy interface cannot be resolved I have sent you the project by email , please let me know if you need anything else
`fail: Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter[0] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": null, "validationErrors": null }
fail: Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter[0] An exception was thrown while activating Cao.CatOs.TestHarness.Api.Host.Features.CatFile.CatFileSummaryTestService. Autofac.Core.DependencyResolutionException: An exception was thrown while activating Cao.CatOs.TestHarness.Api.Host.Features.CatFile.CatFileSummaryTestService. ---> Autofac.Core.DependencyResolutionException: None of the constructors found on type 'Cao.CatOs.TestHarness.Api.Host.Features.CatFile.CatFileSummaryTestService' can be invoked with the available services and parameters: Cannot resolve parameter 'Cao.CatOs.CatFiles.ICatFileSummaryAppService catFileAppService' of constructor 'Void .ctor(Cao.CatOs.CatFiles.ICatFileSummaryAppService)'.
See https://autofac.rtfd.io/help/no-constructors-bindable for more info. at Autofac.Core.Activators.Reflection.ReflectionActivator.<>c__DisplayClass14_0.
trce: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[53] Exception Filter: After executing OnExceptionAsync on filter Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter. `
Full class , and I am already depending on the mentioned module :
[DependsOn(
typeof(AbpAutofacModule),
typeof(AbpHttpClientModule), //used to create client proxies
typeof(CatOsApplicationContractsModule), //used to create client proxies,
typeof(AbpAspNetCoreModule),
typeof(CatOsHttpApiClientModule)
)]
public class CatOsHttpApiClientTestModule : AbpModule
{
private readonly string RemoteServiceName = "Default";
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddHttpClientProxies(
typeof(CatOsApplicationContractsModule).Assembly,
RemoteServiceName
);
context.Services.AddAutofac();
context.Services.AddControllers();
context.Services.AddEndpointsApiExplorer();
context.Services.AddHttpContextAccessor();
context.Services.AddScoped<ScenarioManager>();
context.Services.AddSwaggerGen(options =>
{
options.AddSecurityDefinition(
"Bearer",
new Microsoft.OpenApi.Models.OpenApiSecurityScheme
{
Name = "Authorization",
Type = Microsoft.OpenApi.Models.SecuritySchemeType.Http,
Scheme = "Bearer",
BearerFormat = "JWT",
In = Microsoft.OpenApi.Models.ParameterLocation.Header,
Description =
"Enter 'Bearer' [space] and then your token in the text input below.\n\nExample: 'Bearer 12345abcdef'",
}
);
options.AddSecurityRequirement(
new Microsoft.OpenApi.Models.OpenApiSecurityRequirement
{
{
new Microsoft.OpenApi.Models.OpenApiSecurityScheme
{
Reference = new Microsoft.OpenApi.Models.OpenApiReference
{
Type = Microsoft.OpenApi.Models.ReferenceType.SecurityScheme,
Id = "Bearer",
},
},
new string[] { }
},
}
);
});
context.Services.AddHttpClient(
"catos",
(sp, client) =>
{
var scenarioManager = sp.GetRequiredService<ScenarioManager>();
var configuration = sp.GetRequiredService<IConfiguration>();
client.BaseAddress = new Uri(
configuration.GetValue<string>("RemoteServices:Default:BaseUrl")
);
var jwtToken = scenarioManager.GetOrCreate().StringData[
ScenarioContext.AccessToken
];
client.DefaultRequestHeaders.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", jwtToken);
}
);
}
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var app = context.GetApplicationBuilder();
var env = context.GetEnvironment();
// Configure the HTTP request pipeline.
if (env.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
// app.UseAuthorization();
app.UseRouting(); // Added to enable endpoint routing
app.UseEndpoints(endpoints => // Updated to use IEndpointRouteBuilder
{
endpoints.MapControllers();
});
}
}
Can you please share your hardware configuration that the Redis server was running on ? (CPU/RAM)
Application was sent to your email , please let me know if you have any finding.
**Our team is now fully blocked, and we need either a fix or an efficient work around **
I have to get approval to share the project , can you confirm you got the log file ? also would you be able to point me where in the source code this method use cache in ABP source code ? I want to have a look.
I shared the log where redis is run locally Please check your email
Sound like v 9.1.1 is dependent on v 1.8.17 , please check the image, also if I update to 1.8.18 I get version conflict because v 9.1.1 want Hangfire v 1.8.17. please let me know if I missed something
As for reverting to our original version 1.8.14 , that not possible because v9.1.1 require 1.8.17 version as we stated above. Please advise. thanks