Open Closed

How can I run the demo in the pro module? #1493


User avatar
0
sgal created

I tested this module https://docs.abp.io/en/commercial/latest/modules/payment

When I add some extension, I want to test this, but when I run this demo appear some error

[11:57:13 INF] Request starting HTTP/1.1 POST http://localhost:57891/Payment/WeChat/PrePayment?paymentRequestId=41648e16-fee0-7d74-de67-39fd2a4a6f19 application/x-www-form-urlencoded 521
[11:57:13 INF] Identity.Application was not authenticated. Failure message: Unprotect ticket failed
[11:57:13 INF] AUDIT LOG: [404: POST   ] /Payment/WeChat/PrePayment
- UserName - UserId                 :  -
- ClientIpAddress        : ::1
- ExecutionDuration      : 0

[11:57:13 INF] Request finished HTTP/1.1 POST http://localhost:57891/Payment/WeChat/PrePayment?paymentRequestId=41648e16-fee0-7d74-de67-39fd2a4a6f19 application/x-www-form-urlencoded 521 - 404 0 - 0.8390ms

and I'm consider whether is not logged in, but there are some problems logging in

[12:02:56 INF] AUDIT LOG: [200: GET    ] /Account/Login
- UserName - UserId                 :  -
- ClientIpAddress        : ::1
- ExecutionDuration      : 4
- Actions:
  - Volo.Abp.Account.Web.Pages.Account.LoginModel.OnGetAsync (0 ms.)
    {}
- Exceptions:
  - Undefined setting: Abp.Account.EnableLocalLogin
    Volo.Abp.AbpException: Undefined setting: Abp.Account.EnableLocalLogin
   at Volo.Abp.Settings.SettingDefinitionManager.Get(String name)
   at Volo.Abp.Settings.SettingProvider.GetOrNullAsync(String name)
   at Volo.Abp.Settings.SettingProviderExtensions.IsTrueAsync(ISettingProvider settingProvider, String name)
   at Volo.Abp.Account.Web.Pages.Account.LoginModel.OnGetAsync()
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.GenericTaskHandlerMethod.Convert[T](Object taskAsObject)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.GenericTaskHandlerMethod.Execute(Object receiver, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isComplete
d)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextResourceFilter()
--- End of stack trace from previous location ---
   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()
--- End of stack trace from previous location ---
   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.Auditing.AbpAuditingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)

2 Answer(s)
  • User Avatar
    1
    liangshiwei created
    Support Team Fullstack Developer

  • User Avatar
    0
    sgal created

    I create a demo to found why razor page in library not found 404, finally with the help of @liangshiwei, the reason is the library project sdk is Microsoft.NET.Sdk.Web, not Microsoft.NET.Sdk, although I quoted Microsoft.AspNetCore.Mvc.RazorPages package ,but it hasn't been updated for a long time, and it useless.

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