I created a project with ABP Suite framework 4.0.0 final relase, and i get an error when the UI on Blazor is generating. The project is running on ABP Framework 4.0.0 RC-4, and i get this error from that version Today update ABP Suite to final relase but error remain The error log is this: Message: Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Frontend.Blazor.Page.Partials.Enum_Namespaces.txt
We publish an empty app generate with ABP Suite. The deployment of the project is on IIS. API show me Swagger page and Angular Front app is runing but after make login i got this console error:
***Access to XMLHttpRequest at 'https://api.server.com:51114/.well-known/openid-configuration' from origin 'https://front.server.com:51113' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource***.
And the error promt is this:
***An error has occurred!
http failure response for https://api.server.com:51114/api/abp/application-configuration: 0 Unknown Error***
Checkig on the API's log file i found following code:
***[ERR] Connection ID "16717361818409893977", Request ID "8000005a-0000-e800-b63f-84710c7967bb": An unhandled exception was thrown by the application.
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://api.server.com:51114/.well-known/openid-configuration'.
---> System.IO.IOException: IDX20804: Unable to retrieve document from: 'https://front.server.com:51114/.well-known/openid-configuration'.
---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host***
This is code that i have on the API
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{
context.Services.AddAuthentication()
.AddJwtBearer(options =>
{
options.Authority = configuration["AuthServer:Authority"];
options.RequireHttpsMetadata = Convert.ToBoolean(configuration["AuthServer:RequireHttpsMetadata"]); ;
options.Audience = "Tickets";
options.BackchannelHttpHandler = new HttpClientHandler()
{
ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
};
});
}
***Google the error, someone says it's certificate error so we recreate a new certificate, but same error.***
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
If you're creating a bug/problem report, please include followings:
If you're creating a bug/problem report, please include followings:
* 2021-09-27 15:07:52.868 -04:00 [ERR] An exception occurred while iterating over the results of a query for context type 'Galac.Tickets.EntityFrameworkCore.TicketsDbContext'.
Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
---> System.ComponentModel.Win32Exception (258): The wait operation timed out.
at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__169_0(Task`1 result)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(DbContext _, Boolean result, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
ClientConnectionId:9576df5a-9316-491c-8681-bb8966ab348c
Error Number:-2,State:0,Class:11
Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
---> System.ComponentModel.Win32Exception (258): The wait operation timed out.
at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__169_0(Task`1 result)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(DbContext _, Boolean result, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
ClientConnectionId:9576df5a-9316-491c-8681-bb8966ab348c
Error Number:-2,State:0,Class:11
If you're creating a bug/problem report, please include followings:
ABP Framework version: v4.4.2
UI type: Blazor
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): yes
Exception message and stack trace:
I get an error when restore a Blazor project, this task was running complete early in the morning, but about four hours ago, doesn't run anymore. I think it's releted to a package that is not aviable anymore. => Volo.Abp.Account.Pro.Admin.Application.Contracts (4.4.2). This task was running in a docker image stored on GitLab for a devsops deployment.
The command that run is this:
dotnet restore Galac.Tickets.Blazor.csproj
In a windows os run correctly, but on a docker image (debian os) doesn't run anymore. The image used for generate is this => mcr.microsoft.com/dotnet/sdk:5.0
The complete error trace is this.
Determining projects to restore... /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : warning NU1603: Galac.Tickets.Application.Contracts depends on Volo.Abp.Account.Pro.Admin.Application.Contracts (>= 4.4.2) but Volo.Abp.Account.Pro.Admin.Application.Contracts 4.4.2 was not found. An approximate best match of Volo.Abp.Account.Pro.Admin.Application.Contracts 5.0.0 was resolved. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : warning NU1603: Galac.Tickets.HttpApi depends on Volo.Abp.Account.Pro.Admin.HttpApi (>= 4.4.2) but Volo.Abp.Account.Pro.Admin.HttpApi 4.4.2 was not found. An approximate best match of Volo.Abp.Account.Pro.Admin.HttpApi 5.0.0 was resolved. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : warning NU1603: Galac.Tickets.Application.Contracts depends on Volo.Abp.Account.Pro.Public.Application.Contracts (>= 4.4.2) but Volo.Abp.Account.Pro.Public.Application.Contracts 4.4.2 was not found. An approximate best match of Volo.Abp.Account.Pro.Public.Application.Contracts 5.0.0 was resolved. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : warning NU1603: Galac.Tickets.HttpApi depends on Volo.Abp.Account.Pro.Public.HttpApi (>= 4.4.2) but Volo.Abp.Account.Pro.Public.HttpApi 4.4.2 was not found. An approximate best match of Volo.Abp.Account.Pro.Public.HttpApi 5.0.0 was resolved. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : warning NU1603: Galac.Tickets.Application.Contracts depends on Volo.Abp.AuditLogging.Application.Contracts (>= 4.4.2) but Volo.Abp.AuditLogging.Application.Contracts 4.4.2 was not found. An approximate best match of Volo.Abp.AuditLogging.Application.Contracts 5.0.0 was resolved. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : warning NU1603: Galac.Tickets.HttpApi depends on Volo.Abp.AuditLogging.HttpApi (>= 4.4.2) but Volo.Abp.AuditLogging.HttpApi 4.4.2 was not found. An approximate best match of Volo.Abp.AuditLogging.HttpApi 5.0.0 was resolved. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : warning NU1603: Galac.Tickets.Domain.Shared depends on Volo.Abp.Commercial.SuiteTemplates (>= 4.4.2) but Volo.Abp.Commercial.SuiteTemplates 4.4.2 was not found. An approximate best match of Volo.Abp.Commercial.SuiteTemplates 5.0.0 was resolved. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : warning NU1603: Galac.Tickets.Application.Contracts depends on Volo.Abp.Identity.Pro.Application.Contracts (>= 4.4.2) but Volo.Abp.Identity.Pro.Application.Contracts 4.4.2 was not found. An approximate best match of Volo.Abp.Identity.Pro.Application.Contracts 5.0.0 was resolved. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : warning NU1603: Galac.Tickets.Domain.Shared depends on Volo.Abp.Identity.Pro.Domain.Shared (>= 4.4.2) but Volo.Abp.Identity.Pro.Domain.Shared 4.4.2 was not found. An approximate best match of Volo.Abp.Identity.Pro.Domain.Shared 5.0.0 was resolved. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : warning NU1603: Galac.Tickets.HttpApi depends on Volo.Abp.Identity.Pro.HttpApi (>= 4.4.2) but Volo.Abp.Identity.Pro.HttpApi 4.4.2 was not found. An approximate best match of Volo.Abp.Identity.Pro.HttpApi 5.0.0 was resolved. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : warning NU1603: Galac.Tickets.Application.Contracts depends on Volo.Abp.IdentityServer.Application.Contracts (>= 4.4.2) but Volo.Abp.IdentityServer.Application.Contracts 4.4.2 was not found. An approximate best match of Volo.Abp.IdentityServer.Application.Contracts 5.0.0 was resolved. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] Tickets.HttpApi.csproj : error NU1605: Galac.Tickets.HttpApi -> Galac.Tickets.Application.Contracts -> Volo.Abp.FeatureManagement.Application.Contracts (>= 4.4.2) [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : error NU1605: Detected package downgrade: Volo.Abp.PermissionManagement.Application.Contracts from 5.0.0 to 4.4.2. Reference the package directly from the project to select a different version. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.HttpApi/Galac.Tickets.HttpApi.csproj : error NU1605: Galac.Tickets.HttpApi -> Galac.Tickets.Application.Contracts -> Volo.Abp.Identity.Pro.Application.Contracts5.0). Package Volo.Abp.LeptonTheme.Management.Blazor.Server 5.0.0 supports: net6.0 (.NETCoreApp,Version=v6.0) /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj : error NU1202: Package Volo.Abp.IdentityServer.Blazor.Server 5.0.0 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Package Volo.Abp.IdentityServer.Blazor.Server 5.0.0 supports: net6.0 (.NETCoreApp,Version=v6.0) /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj : error NU1202: Package Volo.Abp.LanguageManagement.Blazor.Server 5.0.0 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Package Volo.Abp.LanguageManagement.Blazor.Server 5.0.0 supports: net6.0 (.NETCoreApp,Version=v6.0) /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj : error NU1202: Package Volo.Saas.Host.Blazor.Server 5.0.0 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Package Volo.Saas.Host.Blazor.Server 5.0.0 supports: net6.0 (.NETCoreApp,Version=v6.0) /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj : error NU1202: Package Volo.Abp.TextTemplateManagement.Blazor.Server 5.0.0 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Package Volo.Abp.TextTemplateManagement.Blazor.Server 5.0.0 supports: net6.0 (.NETCoreApp,Version=v6.0) /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj : error NU1202: Package Volo.Abp.AuditLogging.HttpApi 5.0.0 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Package Volo.Abp.AuditLogging.HttpApi 5.0.0 supports: net6.0 (.NETCoreApp,Version=v6.0) /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj : error NU1202: Package Volo.Abp.Identity.Pro.HttpApi 5.0.0 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Package Volo.Abp.Identity.Pro.HttpApi 5.0.0 supports: net6.0 (.NETCoreApp,Version=v6.0) /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj : error NU1202: Package Volo.Abp.Account.Pro.Admin.HttpApi 5.0.0 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Package Volo.Abp.Account.Pro.Admin.HttpApi 5.0.0 supports: net6.0 (.NETCoreApp,Version=v6.0) /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj : error NU1202: Package Volo.Abp.Account.Pro.Public.HttpApi 5.0.0 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Package Volo.Abp.Account.Pro.Public.HttpApi 5.0.0 supports: net6.0 (.NETCoreApp,Version=v6.0) /buo.Abp.FeatureManagement.Application.Contracts from 5.0.0 to 4.4.2. Reference the package directly from the project to select a different version. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Application.Contracts/Galac.Tickets.Application.Contracts.csproj : error NU1605: Galac.Tickets.Application.Contracts -> Volo.Saas.Host.Application.Contracts 5.0.0 -> Volo.Abp.FeatureManagement.Application.Contracts (>= 5.0.0) [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Application.Contracts/Galac.Tickets.Application.Contracts.csproj : error NU1605: Galac.Tickets.Application.Contracts -> Volo.Abp.FeatureManagement.Application.Contracts (>= 4.4.2) [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Application.Contracts/Galac.Tickets.Application.Contracts.csproj : error NU1605: Detected package downgrade: Volo.Abp.PermissionManagement.Application.Contracts from 5.0.0 to 4.4.2. Reference the package directly from the project to select a different version. [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Application.Contracts/Galac.Tickets.Application.Contracts.csproj : error NU1605: Galac.Tickets.Application.Contracts -> Volo.Abp.Identity.Pro.Application.Contracts 5.0.0 -> Volo.Abp.PermissionManagement.Application.Contracts (>= 5.0.0) [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Application.Contracts/Galac.Tickets.Application.Contracts.csproj : error NU1605: Galac.Tickets.Application.Contracts -> Volo.Abp.PermissionManagement.Application.Contracts (>= 4.4.2) [/builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Blazor/Galac.Tickets.Blazor.csproj] Failed to restore /builds/galac-software-enterprise/test/ticketsa/aspnet-core/src/Galac.Tickets.Application.Contracts/Galac.Tickets.Application.Contracts.csproj (in 672 ms).
If you're creating a bug/problem report, please include followings:
An unhandled exception has occurred while executing the request.
Volo.Abp.AbpException: Could not find the bundle file '/libs/abp/core/abp.css' for the bundle 'LeptonXLite.Global'!
at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List1 bundleItems, String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpBundleTagHelperService
2.ProcessAsync(TagHelperContext context, TagHelperOutput output)
at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, Int32 i, Int32 count)
at AspNetCoreGeneratedDocument.Themes_LeptonXLite_Layouts_Empty.<>c__DisplayClass13_0.<<ExecuteAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync()
at AspNetCoreGeneratedDocument.Themes_LeptonXLite_Layouts_Empty.ExecuteAsync()
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderLayoutAsync(ViewContext context, ViewBufferTextWriter bodyWriter)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable
1 statusCode)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Volo.Abp.AspNetCore.Serilog.AbpSerilogMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Volo.Abp.AspNetCore.Auditing.AbpAuditingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Volo.Abp.AspNetCore.Auditing.AbpAuditingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Volo.Abp.AspNetCore.Uow.AbpUnitOfWorkMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Volo.Abp.AspNetCore.MultiTenancy.MultiTenancyMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
After that make, migration and run AuthServer Project. When I get into de URL get this error
An unhandled exception occurred while processing the request. AbpException: Could not find the bundle file '/libs/abp/core/abp.css' for the bundle 'LeptonXLite.Global'! Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List<BundleTagHelperItem> bundleItems, string bundleName)
Stack Query Cookies Headers Routing AbpException: Could not find the bundle file '/libs/abp/core/abp.css' for the bundle 'LeptonXLite.Global'! Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List<BundleTagHelperItem> bundleItems, string bundleName) Volo.Abp.AspNetCore
We have an Beta App running for some user about 115 simultaneous users. When the connecntions and transactions is close to that amount of user frecuently we get this warning Could not save the audit log object after that all of the transactions or operations star to fail the only way that we solve this problem is is restarting each server. We using Windows Server 2019 OS on a virtual machine with 8 GB of RAM and 8 virtual proccesors. We have an server for each services, One to the front and others 3 for API, Identity and Database.
What can you suggest to resolve this random bug? What variable should we monitor to minimize this type of events?
* 2022-08-03 07:53:03.086 -04:00 [WRN] Could not save the audit log object:
AUDIT LOG: [200: POST ] /api/app/**
- A task was canceled.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at Microsoft.EntityFrameworkCore.Storage.RelationalTransaction.CommitAsync(CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalTransaction.CommitAsync(CancellationToken cancellationToken)
at Volo.Abp.Uow.EntityFrameworkCore.EfCoreTransactionApi.CommitAsync()
at Volo.Abp.Uow.UnitOfWork.CommitTransactionsAsync()
at Volo.Abp.Uow.UnitOfWork.CompleteAsync(CancellationToken cancellationToken)
at Volo.Abp.AspNetCore.Uow.AbpUnitOfWorkMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Volo.Abp.AspNetCore.Serilog.AbpSerilogMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Volo.Abp.AspNetCore.Auditing.AbpAuditingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-08-03 07:53:03.086 -04:00 [ERR] A task was canceled.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(DbContext _, Boolean result, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
at Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository`3.FindAsync(TKey id, Boolean includeDetails, CancellationToken cancellationToken)
at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
at Volo.Saas.Tenants.TenantStore.GetCacheItemAsync(Nullable`1 id, String name)
at Volo.Saas.Tenants.TenantStore.FindAsync(Guid id)
at Volo.Abp.MultiTenancy.MultiTenantConnectionStringResolver.FindTenantConfigurationAsync(Guid tenantId)
at Volo.Abp.MultiTenancy.MultiTenantConnectionStringResolver.ResolveAsync(String connectionStringName)
at Volo.Abp.Uow.EntityFrameworkCore.UnitOfWorkDbContextProvider`1.ResolveConnectionStringAsync(String connectionStringName)
at Volo.Abp.Uow.EntityFrameworkCore.UnitOfWorkDbContextProvider`1.GetDbContextAsync()
at Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository`2.InsertAsync(TEntity entity, Boolean autoSave, CancellationToken cancellationToken)
at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation
ABP Framework version: v4.3.3
UI type: Blazor Server
DB provider: EF Core and Dapper
Tiered : yes
Exception message and stack trace:
*Steps to reproduce the issue:"
I need your help or a guide to make this: We know that the current user has a list of claims. We need to add particular parameters or settings and new values to that claim's list. When the app needs to read a value, it could query it from the current user, i need to apply this both in blazor server(UI) and in the API (backend).
I test this code:
`public class SessionValueService : ApplicationService, ISessionValue, ITransientDependency {
private readonly ICurrentPrincipalAccessor _currentPrincipalAccessor;
public SessionValueService(ICurrentPrincipalAccessor currentPrincipalAccessor) {
_currentPrincipalAccessor = currentPrincipalAccessor;
}
public async Task<string> GetSessionValueAsync(string key) {
var ClaimObligatorio = TicketsSettings.CompaniaActualId;
var x = _currentPrincipalAccessor.Principal.Claims.FirstOrDefault(p => p.Type.Equals(ClaimObligatorio));
if (x != null) {
x = _currentPrincipalAccessor.Principal.Claims.FirstOrDefault(p => p.Type.Equals(key));
if (x != null) {
return x.Value;
}
} else {
var claimsPrincipal = await CargarValoresGlobales();
_currentPrincipalAccessor.Change(claimsPrincipal);
return await GetSessionValueAsync(key);
}
return null;
}`
But when the app uses this method, there is not any claim (charged or load) in the main current user thread.
Anybody could help me to do this?