Starts in:
2 DAYS
10 HRS
11 MIN
47 SEC
Starts in:
2 D
10 H
11 M
47 S
Open Closed

分层项目迁移失败 #7874


User avatar
0
liyingji created
  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server, ) /
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:新创建的工程,从原来分层的旧项目中迁移代码过来,连接原来的数据库,系统能启动,访问管理--用户,不能显示内容,尝试创建新的库,连接新库后管理员默认密码不能登录,浏览器报错:
  • 部分日志:2024-09-11 18:19:45.416 +08:00 [INF] Initializing UI Database 2024-09-11 18:19:45.632 +08:00 [INF] Saving healthchecks configuration to database 2024-09-11 18:19:45.902 +08:00 [INF] Request starting HTTP/2 GET https://localhost:44300/ - null null 2024-09-11 18:19:46.326 +08:00 [DBG] Executing HealthCheck collector HostedService. 2024-09-11 18:19:46.385 +08:00 [INF] Start processing HTTP request GET https://localhost:44300/health-status 2024-09-11 18:19:46.388 +08:00 [INF] Sending HTTP request GET https://localhost:44300/health-status 2024-09-11 18:19:46.418 +08:00 [INF] Application started. Press Ctrl+C to shut down. 2024-09-11 18:19:46.419 +08:00 [INF] Hosting environment: Development 2024-09-11 18:19:46.419 +08:00 [INF] Content root path: D:\NewLee\Lee\src\Lee.Web 2024-09-11 18:19:46.491 +08:00 [INF] Request starting HTTP/1.1 GET https://localhost:44300/health-status - null null 2024-09-11 18:19:46.625 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessRequestContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ResolveRequestUri. 2024-09-11 18:19:46.641 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ResolveRequestUri. 2024-09-11 18:19:46.645 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+InferEndpointType. 2024-09-11 18:19:46.645 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by Volo.Abp.Account.Web.Pages.Account.OpenIddictImpersonateInferEndpointType. 2024-09-11 18:19:46.647 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateTransportSecurityRequirement. 2024-09-11 18:19:46.647 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateHostHeader. 2024-09-11 18:19:46.670 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ValidateHostHeader. 2024-09-11 18:19:46.672 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.OpenIddictValidationHandlers+EvaluateValidatedTokens. 2024-09-11 18:19:46.673 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromAuthorizationHeader. 2024-09-11 18:19:46.674 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromBodyForm. 2024-09-11 18:19:46.675 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromQueryString. 2024-09-11 18:19:46.675 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.OpenIddictValidationHandlers+ValidateRequiredTokens. 2024-09-11 18:19:46.675 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was marked as rejected by OpenIddict.Validation.OpenIddictValidationHandlers+ValidateRequiredTokens. 2024-09-11 18:19:46.676 +08:00 [DBG] AuthenticationScheme: OpenIddict.Validation.AspNetCore was not authenticated. 2024-09-11 18:19:47.148 +08:00 [INF] Executing endpoint 'Health checks' 2024-09-11 18:19:49.003 +08:00 [INF] Completed to save external localizations. 2024-09-11 18:19:50.523 +08:00 [DBG] Added 0 entity changes to the current audit log 2024-09-11 18:19:50.604 +08:00 [INF] Executed endpoint 'Health checks' 2024-09-11 18:19:50.683 +08:00 [INF] Received HTTP response headers after 4292.9306ms - 200 2024-09-11 18:19:50.684 +08:00 [INF] End processing HTTP request after 4307.4958ms - 200 2024-09-11 18:19:50.705 +08:00 [INF] Request finished HTTP/1.1 GET https://localhost:44300/health-status - 200 null application/json 4212.8781ms 2024-09-11 18:19:50.838 +08:00 [DBG] HealthReportCollector - health report execution history saved. 2024-09-11 18:19:50.839 +08:00 [DBG] Creating a new HealthReport history. 2024-09-11 18:19:50.988 +08:00 [DBG] HealthReportCollector has completed. 2024-09-11 18:19:50.990 +08:00 [DBG] HealthCheck collector HostedService executed successfully. 2024-09-11 18:19:52.433 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessRequestContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ResolveRequestUri. 2024-09-11 18:19:52.433 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ResolveRequestUri. 2024-09-11 18:19:52.434 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+InferEndpointType. 2024-09-11 18:19:52.434 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by Volo.Abp.Account.Web.Pages.Account.OpenIddictImpersonateInferEndpointType. 2024-09-11 18:19:52.434 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateTransportSecurityRequirement. 2024-09-11 18:19:52.434 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateHostHeader. 2024-09-11 18:19:52.435 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ValidateHostHeader. 2024-09-11 18:19:52.435 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.OpenIddictValidationHandlers+EvaluateValidatedTokens. 2024-09-11 18:19:52.435 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromAuthorizationHeader. 2024-09-11 18:19:52.435 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromBodyForm. 2024-09-11 18:19:52.435 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromQueryString. 2024-09-11 18:19:52.435 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.OpenIddictValidationHandlers+ValidateRequiredTokens. 2024-09-11 18:19:52.435 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was marked as rejected by OpenIddict.Validation.OpenIddictValidationHandlers+ValidateRequiredTokens. 2024-09-11 18:19:52.436 +08:00 [DBG] AuthenticationScheme: OpenIddict.Validation.AspNetCore was not authenticated. 2024-09-11 18:19:52.444 +08:00 [INF] Executing endpoint '/Index' 2024-09-11 18:19:52.463 +08:00 [INF] Route matched with {page = "/Index", action = "", controller = "", area = ""}. Executing page /Index 2024-09-11 18:19:52.464 +08:00 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy 2024-09-11 18:19:52.473 +08:00 [INF] Executing an implicit handler method - ModelState is "Valid" 2024-09-11 18:19:52.474 +08:00 [INF] Executed an implicit handler method, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult. 2024-09-11 18:19:52.751 +08:00 [DBG] Added 0 entity changes to the current audit log 2024-09-11 18:19:52.988 +08:00 [DBG] Added bundle 'LeptonX.Global' to the page in 17.55 ms. 2024-09-11 18:19:53.006 +08:00 [DBG] Added bundle 'Pages.Index' to the page in 1.16 ms. 2024-09-11 18:19:55.035 +08:00 [DBG] Added bundle 'LeptonX.Global' to the page in 21.15 ms. 2024-09-11 18:19:55.045 +08:00 [DBG] Added bundle '0A8933CBA9502D82B30D3F2736E143D4' to the page in 1.19 ms. 2024-09-11 18:19:55.053 +08:00 [INF] Executed page /Index in 2588.3207ms 2024-09-11 18:19:55.053 +08:00 [INF] Executed endpoint '/Index' 2024-09-11 18:19:55.086 +08:00 [INF] Request finished HTTP/2 GET https://localhost:44300/ - 200 null text/html; charset=utf-8 9194.2182ms 2024-09-11 18:19:55.166 +08:00 [INF] Request starting HTTP/2 GET https://localhost:44300/Abp/ServiceProxyScript - null null 2024-09-11 18:19:55.166 +08:00 [INF] Request starting HTTP/2 GET https://localhost:44300/Abp/ApplicationConfigurationScript - null null 2024-09-11 18:19:55.166 +08:00 [INF] Request starting HTTP/2 GET https://localhost:44300/_framework/aspnetcore-browser-refresh.js - null null 2024-09-11 18:19:55.174 +08:00 [INF] Request starting HTTP/2 GET https://localhost:44300/_vs/browserLink - null null 2024-09-11 18:19:55.174 +08:00 [INF] Request starting HTTP/2 GET https://localhost:44300/Abp/ApplicationLocalizationScript?cultureName=zh-Hans - null null 2024-09-11 18:19:55.186 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessRequestContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ResolveRequestUri. 2024-09-11 18:19:55.186 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessRequestContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ResolveRequestUri. 2024-09-11 18:19:55.187 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ResolveRequestUri. 2024-09-11 18:19:55.187 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ResolveRequestUri. 2024-09-11 18:19:55.187 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+InferEndpointType. 2024-09-11 18:19:55.187 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+InferEndpointType. 2024-09-11 18:19:55.187 +08:00 [INF] Request finished HTTP/2 GET https://localhost:44300/_framework/aspnetcore-browser-refresh.js - 200 13750 application/javascript; charset=utf-8 14.7255ms 2024-09-11 18:19:55.187 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by Volo.Abp.Account.Web.Pages.Account.OpenIddictImpersonateInferEndpointType. 2024-09-11 18:19:55.187 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by Volo.Abp.Account.Web.Pages.Account.OpenIddictImpersonateInferEndpointType. 2024-09-11 18:19:55.187 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateTransportSecurityRequirement. 2024-09-11 18:19:55.187 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateHostHeader. 2024-09-11 18:19:55.187 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateTransportSecurityRequirement. 2024-09-11 18:19:55.187 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateHostHeader. 2024-09-11 18:19:55.189 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ValidateHostHeader. 2024-09-11 18:19:55.189 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ValidateHostHeader. 2024-09-11 18:19:55.189 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.OpenIddictValidationHandlers+EvaluateValidatedTokens. 2024-09-11 18:19:55.189 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.OpenIddictValidationHandlers+EvaluateValidatedTokens. 2024-09-11 18:19:55.189 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromAuthorizationHeader. 2024-09-11 18:19:55.189 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromAuthorizationHeader. 2024-09-11 18:19:55.189 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromBodyForm. 2024-09-11 18:19:55.189 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ExtractAccessTokenFromBodyForm. 2024-09-11 18:19:55.189 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessAuthenticationContext was successfully processed by

2 Answer(s)
  • User Avatar
    0
    liyingji created

    我改用suite新建了一个项目,而不是用abp studio,创建新数据库,一切正常了

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, I have refunded your ticket.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06