Open Closed

ABP Framework update issue v4.3.3 -> v4.4 #1704


User avatar
0
Shoba24 created
  • ABP Framework version: v4.3.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

We have upgraded abp framework from v4.3.3 to v4.4 .After upgrading Host dashboard throws unhandled exception.please solve the issue ASAP!


8 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you share the logs?

  • User Avatar
    0
    Shoba24 created
    2021-08-16 11:03:38.200 +05:30 [INF] Request starting HTTP/2 POST https://localhost:44332/signin-oidc application/x-www-form-urlencoded 1857
    2021-08-16 11:03:38.597 +05:30 [INF] AuthenticationScheme: Cookies signed in.
    2021-08-16 11:03:38.598 +05:30 [INF] Request finished HTTP/2 POST https://localhost:44332/signin-oidc application/x-www-form-urlencoded 1857 - 302 - - 397.5794ms
    2021-08-16 11:03:38.615 +05:30 [INF] Request starting HTTP/2 GET https://localhost:44332/ - -
    2021-08-16 11:03:38.618 +05:30 [INF] Executing endpoint '/Index'
    2021-08-16 11:03:38.619 +05:30 [INF] Route matched with {page = "/Index", action = "", controller = "", area = ""}. Executing page /Index
    2021-08-16 11:03:38.619 +05:30 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy
    2021-08-16 11:03:38.619 +05:30 [INF] Executing handler method GenieERP.Web.Pages.IndexModel.OnGet - ModelState is "Valid"
    2021-08-16 11:03:38.620 +05:30 [INF] Executed handler method OnGet, returned result .
    2021-08-16 11:03:38.620 +05:30 [INF] Executing an implicit handler method - ModelState is "Valid"
    2021-08-16 11:03:38.620 +05:30 [INF] Executed an implicit handler method, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult.
    2021-08-16 11:03:38.621 +05:30 [INF] Start processing HTTP request GET "https://localhost:44321/api/abp/application-configuration?api-version=1.0"
    2021-08-16 11:03:38.622 +05:30 [INF] Sending HTTP request GET "https://localhost:44321/api/abp/application-configuration?api-version=1.0"
    2021-08-16 11:03:39.031 +05:30 [INF] Received HTTP response headers after 409.587ms - 200
    2021-08-16 11:03:39.031 +05:30 [INF] End processing HTTP request after 409.7304ms - 200
    2021-08-16 11:03:39.074 +05:30 [DBG] Added bundle 'Lepton.Global' to the page in 0.92 ms.
    2021-08-16 11:03:39.081 +05:30 [INF] Authorization was successful.
    2021-08-16 11:03:39.091 +05:30 [INF] Authorization was successful.
    2021-08-16 11:03:39.110 +05:30 [DBG] Added bundle 'Lepton.Global' to the page in 3.21 ms.
    2021-08-16 11:03:39.111 +05:30 [INF] Executed page /Index in 491.9575ms
    2021-08-16 11:03:39.111 +05:30 [INF] Executed endpoint '/Index'
    2021-08-16 11:03:39.111 +05:30 [INF] Request finished HTTP/2 GET https://localhost:44332/ - - - 302 - text/html;+charset=utf-8 495.5418ms
    2021-08-16 11:03:39.125 +05:30 [INF] Request starting HTTP/2 GET https://localhost:44332/HostDashboard - -
    2021-08-16 11:03:39.147 +05:30 [INF] Authorization was successful.
    2021-08-16 11:03:39.147 +05:30 [INF] Executing endpoint '/HostDashboard'
    2021-08-16 11:03:39.147 +05:30 [INF] Route matched with {page = "/HostDashboard", action = "", controller = "", area = ""}. Executing page /HostDashboard
    2021-08-16 11:03:39.147 +05:30 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy
    2021-08-16 11:03:39.148 +05:30 [INF] Executing handler method GenieERP.Web.Pages.HostDashboardModel.OnGet - ModelState is "Valid"
    2021-08-16 11:03:39.148 +05:30 [INF] Executed handler method OnGet, returned result .
    2021-08-16 11:03:39.148 +05:30 [INF] Executing an implicit handler method - ModelState is "Valid"
    2021-08-16 11:03:39.148 +05:30 [INF] Executed an implicit handler method, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult.
    2021-08-16 11:03:39.150 +05:30 [INF] Authorization was successful.
    2021-08-16 11:03:39.152 +05:30 [INF] Authorization was successful.
    2021-08-16 11:03:39.153 +05:30 [INF] Authorization was successful.
    2021-08-16 11:03:39.154 +05:30 [INF] Authorization was successful.
    2021-08-16 11:03:39.155 +05:30 [INF] Start processing HTTP request GET "https://localhost:44321/api/saas/tenants?GetEditionNames=True&Sorting=CreationTime+desc&SkipCount=0&MaxResultCount=6&api-version=1.0"
    2021-08-16 11:03:39.155 +05:30 [INF] Sending HTTP request GET "https://localhost:44321/api/saas/tenants?GetEditionNames=True&Sorting=CreationTime+desc&SkipCount=0&MaxResultCount=6&api-version=1.0"
    2021-08-16 11:03:39.259 +05:30 [INF] Received HTTP response headers after 104.3853ms - 500
    2021-08-16 11:03:39.259 +05:30 [INF] End processing HTTP request after 104.5372ms - 500
    2021-08-16 11:03:39.288 +05:30 [INF] Executed page /HostDashboard in 141.3373ms
    2021-08-16 11:03:39.289 +05:30 [INF] Executed endpoint '/HostDashboard'
    2021-08-16 11:03:39.289 +05:30 [ERR] An unhandled exception has occurred while executing the request.
    Volo.Abp.Http.Client.AbpRemoteCallException: An internal error occurred during your request!
       at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.ThrowExceptionForResponseAsync(HttpResponseMessage response)
       at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.MakeRequestAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.MakeRequestAndGetResultAsync[T](IAbpMethodInvocation invocation)
       at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.GetResultAsync(Task task, Type resultType)
       at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.InterceptAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
       at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
       at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
       at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
       at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
       at Volo.Saas.Host.Pages.Shared.Components.SaasLatestTenantsWidget.SaasLatestTenantsWidgetViewComponent.InvokeAsync()
       at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, ViewComponentContext context)
       at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context)
       at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, Object arguments)
       at Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpViewComponentHelper.InvokeWidgetAsync(Object arguments, WidgetDefinition widget)
       at Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpViewComponentHelper.InvokeAsync(Type componentType, Object arguments)
       at AspNetCore.Pages_HostDashboard.<ExecuteAsync>b__24_13() in F:\ABP framework update\GenieERP\src\GenieERP.Web\Pages\HostDashboard.cshtml:line 89
       at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync()
       at AspNetCore.Pages_HostDashboard.<ExecuteAsync>b__24_3() in F:\ABP framework update\GenieERP\src\GenieERP.Web\Pages\HostDashboard.cshtml:line 88
       at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync()
       at AspNetCore.Pages_HostDashboard.ExecuteAsync() in F:\ABP framework update\GenieERP\src\GenieERP.Web\Pages\HostDashboard.cshtml:line 22
       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.RenderAsync(ViewContext context)
       at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)
       at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|29_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>g__Awaited|27_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_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|19_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.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 Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
       at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
       at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
       at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
       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 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)
    2021-08-16 11:03:39.300 +05:30 [INF] Request finished HTTP/2 GET https://localhost:44332/HostDashboard - - - 500 - text/html;+charset=utf-8 175.2215ms
    
  • User Avatar
    0
    Shoba24 created

    Until now we use same hostdashboard configuration provided by abp framework.we didn't change anything in hostdashboard configuration.

    we already shared our code to @maliming .you can check it for further clarification.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi Shoba24

    Please share the logs of your IDS and API website

  • User Avatar
    0
    Shoba24 created

    Shared logs to ur mail

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid column name 'ActivationEndDate'. Invalid column name 'ActivationState'. Invalid column name 'EditionEndDateUtc'.

    Please try to update your migration and database.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Sorry, we need the web.hpst, api and identityserver logs.

  • User Avatar
    0
    Shoba24 created

    Hi,

    As @maliming said, after tried migration and update db ,the issue has been fixed.

    Thanks.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35