0
uyarbtrlp created
ABP Framework version: v5.1.1 UI type: MVC DB provider: EF Core Module Template: yes Steps to reproduce the issue:"
- I've created the module template by using abp cli ->abp new Acme.IssueManagement -t module-pro -v 5.1.1
- I've used the Separated Deployment & Databases Scenario. Therefore, I've runned update-db.ps1 script in both HttpApi.Host and IdentityServer projects.
- I've runned the solution.
- When I click one of the default modules page such as Identity Management -> Users from web ui, I face this error:
- Users endpoint works properly on Swagger UI. Exception message and stack trace: These are the logs from Web.Host 2022-03-14 11:13:55.979 +03:00 [INF] Request starting HTTP/2 GET https://localhost:44369/Identity/Users - - 2022-03-14 11:13:55.981 +03:00 [INF] Start processing HTTP request GET "https://localhost:44356/api/abp/application-configuration?api-version=1.0" 2022-03-14 11:13:55.982 +03:00 [INF] Sending HTTP request GET "https://localhost:44356/api/abp/application-configuration?api-version=1.0" 2022-03-14 11:13:56.069 +03:00 [INF] Received HTTP response headers after 87.0187ms - 200 2022-03-14 11:13:56.069 +03:00 [INF] End processing HTTP request after 87.2745ms - 200 2022-03-14 11:13:56.088 +03:00 [INF] Executing endpoint '/Identity/Users/Index' 2022-03-14 11:13:56.088 +03:00 [INF] Route matched with {page = "/Identity/Users/Index", action = "", controller = "", area = ""}. Executing page /Identity/Users/Index 2022-03-14 11:13:56.088 +03:00 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy 2022-03-14 11:13:56.088 +03:00 [INF] Executing handler method Volo.Abp.Identity.Web.Pages.Identity.Users.IndexModel.OnGetAsync - ModelState is "Valid" 2022-03-14 11:13:56.088 +03:00 [INF] Start processing HTTP request GET "https://localhost:44356/api/identity/users/lookup/roles?api-version=1.0" 2022-03-14 11:13:56.088 +03:00 [INF] Sending HTTP request GET "https://localhost:44356/api/identity/users/lookup/roles?api-version=1.0" 2022-03-14 11:13:56.123 +03:00 [INF] Received HTTP response headers after 34.93ms - 200 2022-03-14 11:13:56.124 +03:00 [INF] End processing HTTP request after 35.0652ms - 200 2022-03-14 11:13:56.125 +03:00 [INF] Start processing HTTP request GET "https://localhost:44356/api/identity/users/lookup/organization-units?api-version=1.0" 2022-03-14 11:13:56.125 +03:00 [INF] Sending HTTP request GET "https://localhost:44356/api/identity/users/lookup/organization-units?api-version=1.0" 2022-03-14 11:13:56.144 +03:00 [INF] Received HTTP response headers after 18.891ms - 200 2022-03-14 11:13:56.144 +03:00 [INF] End processing HTTP request after 19.0409ms - 200 2022-03-14 11:13:56.145 +03:00 [INF] Executed handler method OnGetAsync, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult. 2022-03-14 11:13:56.165 +03:00 [DBG] Added bundle 'Lepton.Global' to the page in 2.16 ms. 2022-03-14 11:13:56.167 +03:00 [DBG] Added bundle 'Volo.Abp.Identity.Web.Pages.Identity.Users.IndexModel' to the page in 1.73 ms. 2022-03-14 11:13:56.180 +03:00 [DBG] Added bundle 'Lepton.Global' to the page in 4.01 ms. 2022-03-14 11:13:56.182 +03:00 [DBG] Added bundle 'Volo.Abp.Identity.Web.Pages.Identity.Users.IndexModel' to the page in 1.08 ms. 2022-03-14 11:13:56.190 +03:00 [INF] Executed page /Identity/Users/Index in 101.7788ms 2022-03-14 11:13:56.190 +03:00 [INF] Executed endpoint '/Identity/Users/Index' 2022-03-14 11:13:56.193 +03:00 [INF] Request finished HTTP/2 GET https://localhost:44369/Identity/Users - - - 200 - text/html;+charset=utf-8 213.7965ms
How can I resolve this?
2 Answer(s)
-
0
Hi, can you add the
Volo.Abp.Http.Client.Web
package to your *.Web.Host project?- Add the following line to your .csproj file:
<ItemGroup> <PackageReference Include="Volo.Abp.Http.Client.Web" Version="5.1.1" /> </ItemGroup>
- Add DependsOn[typeof(typeof(AbpHttpClientWebModule))] to your *WebHostModule class:
[DependsOn( //... typeof(AbpAccountAdminWebModule), typeof(AbpSwashbuckleModule), typeof(AbpAspNetCoreSerilogModule), typeof(AbpHttpClientWebModule) //add this line )] public class MyAppWebHostModule : AbpModule { //... }
-
0
Thanks, it works.