Starts in:
1 DAY
9 HRS
46 MIN
55 SEC
Starts in:
1 D
9 H
46 M
55 S
Open Closed

Could not be able to add CMS Kit Pro Module and Forms Module to ABP Microservice MVC Startup Template #4511


User avatar
0
amolk created
  • ABP Framework version: v7.0.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:

1. CMS Kit Pro Module

Logs of WebApp

\[web\_9af338ec\-5\]: \[17:14:29 INF\] Request starting HTTP/2 GET [https://localhost:44321/](https://localhost:44321/) \- \-
\[web\_9af338ec\-5\]: \[17:14:29 INF\] Cookies was not authenticated\. Failure message: Unprotect ticket failed
\[web\_9af338ec\-5\]: \[17:14:29 WRN\] Could not find IdentityClientConfiguration for CmsKitPublic\. Either define a configuration for CmsKitPublic or set a default configuration\.
\[web\_9af338ec\-5\]: \[17:14:29 INF\] Start processing HTTP request GET [https://localhost:44325/api/cms-kit-public/pages?api-version=1.0](https://localhost:44325/api/cms-kit-public/pages?api-version=1.0)
\[web\_9af338ec\-5\]: \[17:14:29 INF\] Sending HTTP request GET [https://localhost:44325/api/cms-kit-public/pages?api-version=1.0](https://localhost:44325/api/cms-kit-public/pages?api-version=1.0)
\[web\_9af338ec\-5\]: \[17:14:29 INF\] Received HTTP response headers after 474\.74ms \- 404
\[web\_9af338ec\-5\]: \[17:14:30 INF\] End processing HTTP request after 491\.3374ms \- 404
\[web\_9af338ec\-5\]: \[17:14:30 ERR\] An unhandled exception has occurred while executing the request\.
\[web\_9af338ec\-5\]: Volo\.Abp\.Http\.Client\.AbpRemoteCallException: Not Found
\[web\_9af338ec\-5\]: at Volo\.Abp\.Http\.Client\.ClientProxying\.ClientProxyBase`1.ThrowExceptionForResponseAsync(HttpResponseMessage response) [web_9af338ec-5]: at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync(ClientProxyRequestContext requestContext)
\[web\_9af338ec\-5\]: at Volo\.Abp\.Http\.Client\.ClientProxying\.ClientProxyBase`1.RequestAsync[T](ClientProxyRequestContext requestContext) [web_9af338ec-5]: at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1\.RequestAsync\[T\]\(String methodName\, ClientProxyRequestTypeValue arguments\)
\[web\_9af338ec\-5\]: at Volo\.CmsKit\.Public\.Pages\.ClientProxies\.PagesPublicClientProxy\.FindDefaultHomePageAsync\(\)
\[web\_9af338ec\-5\]: at Volo\.CmsKit\.Public\.Web\.DefaultHomePageMiddleware\.InvokeAsync\(HttpContext httpContext\)
\[web\_9af338ec\-5\]: at Microsoft\.AspNetCore\.Diagnostics\.DeveloperExceptionPageMiddlewareImpl\.Invoke\(HttpContext context\)
\[web\_9af338ec\-5\]: \[17:14:30 INF\] Request finished HTTP/2 GET [https://localhost:44321/](https://localhost:44321/) \- \- \- 500 \- text/html;\+charset=utf\-8 676\.6011ms

Logs of WebGateway

\[web\-gateway\_d0f651e5\-6\]: \[17:20:18 INF\] Request finished HTTP/1\.1 GET [https://localhost:44325/api/cms-kit-public/pages?api-version=1.0](https://localhost:44325/api/cms-kit-public/pages?api-version=1.0) \- \- \- 500 392 application/json;\+charset=utf\-8 44\.8271ms
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 INF\] Request starting HTTP/1\.1 GET [https://localhost:44325/api/cms-kit-public/pages?api-version=1.0](https://localhost:44325/api/cms-kit-public/pages?api-version=1.0) \- \-
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 DBG\] requestId: 0HMOBBGLLLKVH:00000005\, previousRequestId: no previous request id\, message: ocelot pipeline started
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 DBG\] requestId: 0HMOBBGLLLKVH:00000005\, previousRequestId: no previous request id\, message: Upstream url path is /api/cms\-kit\-public/pages
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 DBG\] requestId: 0HMOBBGLLLKVH:00000005\, previousRequestId: no previous request id\, message: downstream templates are /\{everything\}
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 INF\] requestId: 0HMOBBGLLLKVH:00000005\, previousRequestId: no previous request id\, message: EndpointRateLimiting is not enabled for /\{everything\}
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 INF\] requestId: 0HMOBBGLLLKVH:00000005\, previousRequestId: no previous request id\, message: No authentication needed for /api/cms\-kit\-public/pages
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 INF\] requestId: 0HMOBBGLLLKVH:00000005\, previousRequestId: no previous request id\, message: /\{everything\} route does not require user to be authorized
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 DBG\] requestId: 0HMOBBGLLLKVH:00000005\, previousRequestId: no previous request id\, message: Downstream url is [https://localhost:44367/api/cms-kit-public/pages?api-version=1.0](https://localhost:44367/api/cms-kit-public/pages?api-version=1.0)
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 WRN\] requestId: 0HMOBBGLLLKVH:00000005\, previousRequestId: no previous request id\, message: 500 \(Internal Server Error\) status code\, request uri: [https://localhost:44367/api/cms-kit-public/pages?api-version=1.0](https://localhost:44367/api/cms-kit-public/pages?api-version=1.0)
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 DBG\] requestId: 0HMOBBGLLLKVH:00000005\, previousRequestId: no previous request id\, message: setting http response message
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 DBG\] requestId: 0HMOBBGLLLKVH:00000005\, previousRequestId: no previous request id\, message: no pipeline errors\, setting and returning completed response
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 DBG\] requestId: 0HMOBBGLLLKVH:00000005\, previousRequestId: no previous request id\, message: ocelot pipeline finished
\[web\-gateway\_d0f651e5\-6\]: \[17:20:34 INF\] Request finished HTTP/1\.1 GET [https://localhost:44325/api/cms-kit-public/pages?api-version=1.0](https://localhost:44325/api/cms-kit-public/pages?api-version=1.0) \- \- \- 500 392 application/json;\+charset=utf\-8 53\.5866ms
\[web\_9af338ec\-5\]: \[17:14:29 INF\] Received HTTP response headers after 474\.74ms \- 404
\[web\_9af338ec\-5\]: \[17:14:30 INF\] End processing HTTP request after 491\.3374ms \- 404


2. Forms Module

While trying to access Forms Module, I am getting this kind of error

Logs of WebApp

    [web_6a1b7d37-8]: [17:42:25 INF] Executed action Volo.Forms.Forms.ClientProxies.FormClientProxy.GetListAsync (Volo.Forms.HttpApi.Client) in 24262.7561ms
    [web_6a1b7d37-8]: [17:42:25 INF] Executed endpoint 'Volo.Forms.Forms.ClientProxies.FormClientProxy.GetListAsync (Volo.Forms.HttpApi.Client)'
    [web_6a1b7d37-8]: [17:42:25 INF] Request finished HTTP/2 GET https://localhost:44321/api/forms?filter=&sorting=lastModificationTime%20desc&skipCount=0&maxResultCount=10 application/json - - 0 - application/json;+charset=utf-8 24273.6631ms
    [web_6a1b7d37-8]: [17:42:25 INF] Request starting HTTP/2 GET https://localhost:44321/libs/abp/utils/abp-utils.umd.min.js.map - -
    [web_6a1b7d37-8]: [17:42:25 INF] Sending file. Request path: '/libs/abp/utils/abp-utils.umd.min.js.map'. Physical path: 'C:\Projects\ABP Commercial Microservices MVC .Net7\apps\web\src\testmvc.Web\wwwroot\libs\abp\utils\abp-utils.umd.min.js.map'
    [web_6a1b7d37-8]: [17:42:25 INF] Request finished HTTP/2 GET https://localhost:44321/libs/abp/utils/abp-utils.umd.min.js.map - - - 200 34305 text/plain 3.4030ms
    [web_6a1b7d37-8]: [17:42:25 INF] Request starting HTTP/2 GET https://localhost:44321/api/forms?filter=&sorting=lastModificationTime%20desc&skipCount=0&maxResultCount=10 application/json -
    [web_6a1b7d37-8]: [17:42:25 INF] Executing endpoint 'Volo.Forms.Forms.ClientProxies.FormClientProxy.GetListAsync (Volo.Forms.HttpApi.Client)'
    [web_6a1b7d37-8]: [17:42:25 INF] Route matched with {area = "form", action = "GetList", controller = "Form", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[Volo.Forms.Forms.FormDto]] GetListAsync(Volo.Forms.Forms.GetFormListInputDto) on controller Volo.Forms.Forms.ClientProxies.FormClientProxy (Volo.Forms.HttpApi.Client).
    [web_6a1b7d37-8]: [17:42:25 INF] Executing action method Volo.Forms.Forms.ClientProxies.FormClientProxy.GetListAsync (Volo.Forms.HttpApi.Client) - Validation state: Valid
    [web_6a1b7d37-8]: [17:42:25 INF] Start processing HTTP request GET https://localhost:44325/api/forms?Sorting=lastModificationTime+desc&SkipCount=0&MaxResultCount=10&api-version=1.0
    [web_6a1b7d37-8]: [17:42:25 INF] Sending HTTP request GET https://localhost:44325/api/forms?Sorting=lastModificationTime+desc&SkipCount=0&MaxResultCount=10&api-version=1.0
    [web_6a1b7d37-8]: [17:42:25 INF] Request starting HTTP/2 GET https://localhost:44321/libs/bootstrap/js/bootstrap.bundle.js.map - -
    [web_6a1b7d37-8]: [17:42:25 INF] Sending file. Request path: '/libs/bootstrap/js/bootstrap.bundle.js.map'. Physical path: 'C:\Projects\ABP Commercial Microservices MVC .Net7\apps\web\src\testmvc.Web\wwwroot\libs\bootstrap\js\bootstrap.bundle.js.map'
    [web_6a1b7d37-8]: [17:42:25 INF] Request finished HTTP/2 GET https://localhost:44321/libs/bootstrap/js/bootstrap.bundle.js.map - - - 200 451770 text/plain 18.3828ms
    [web_6a1b7d37-8]: [17:42:26 INF] Received HTTP response headers after 122.007ms - 500
    [web_6a1b7d37-8]: [17:42:26 INF] Request starting HTTP/2 GET https://localhost:44321/libs/toastr/toastr.js.map - -
    [web_6a1b7d37-8]: [17:42:26 INF] Sending file. Request path: '/libs/toastr/toastr.js.map'. Physical path: 'C:\Projects\ABP Commercial Microservices MVC .Net7\apps\web\src\testmvc.Web\wwwroot\libs\toastr\toastr.js.map'
    [web_6a1b7d37-8]: [17:42:26 INF] Request finished HTTP/2 GET https://localhost:44321/libs/toastr/toastr.js.map - - - 200 25633 text/plain 2.6066ms
    [web_6a1b7d37-8]: [17:42:26 INF] Request starting HTTP/2 GET https://localhost:44321/libs/moment/moment.min.js.map - -
    [web_6a1b7d37-8]: [17:42:26 INF] Request finished HTTP/2 GET https://localhost:44321/libs/moment/moment.min.js.map - - - 404 0 - 1.3795ms
    [web_6a1b7d37-8]: [17:42:28 INF] Sending HTTP request GET https://localhost:44325/api/forms?Sorting=lastModificationTime+desc&SkipCount=0&MaxResultCount=10&api-version=1.0
    [web_6a1b7d37-8]: [17:42:28 INF] Received HTTP response headers after 76.4225ms - 500
    [web_6a1b7d37-8]: [17:42:32 INF] Sending HTTP request GET https://localhost:44325/api/forms?Sorting=lastModificationTime+desc&SkipCount=0&MaxResultCount=10&api-version=1.0
    [web_6a1b7d37-8]: [17:42:32 INF] Received HTTP response headers after 76.1643ms - 500
    [web_6a1b7d37-8]: [17:42:40 INF] Sending HTTP request GET https://localhost:44325/api/forms?Sorting=lastModificationTime+desc&SkipCount=0&MaxResultCount=10&api-version=1.0
    [web_6a1b7d37-8]: [17:42:40 INF] Received HTTP response headers after 75.7564ms - 500
    [web_6a1b7d37-8]: [17:42:56 INF] Sending HTTP request GET https://localhost:44325/api/forms?Sorting=lastModificationTime+desc&SkipCount=0&MaxResultCount=10&api-version=1.0
    [web_6a1b7d37-8]: [17:42:56 INF] Received HTTP response headers after 81.1023ms - 500
    [web_6a1b7d37-8]: [17:42:56 INF] End processing HTTP request after 30465.0881ms - 500
    [web_6a1b7d37-8]: [17:42:56 ERR] ---------- RemoteServiceErrorInfo ----------
    [web_6a1b7d37-8]: {
    [web_6a1b7d37-8]: "code": null,
    [web_6a1b7d37-8]: "message": "An internal error occurred during your request!",
    [web_6a1b7d37-8]: "details": null,
    [web_6a1b7d37-8]: "data": {
    [web_6a1b7d37-8]: "ActivatorChain": "Volo.Forms.EntityFrameworkCore.FormsDbContext -> λ:Microsoft.EntityFrameworkCore.DbContextOptions`1[[Volo.Forms.EntityFrameworkCore.FormsDbContext, Volo.Forms.EntityFrameworkCore, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null]]"
    [web_6a1b7d37-8]: },
    [web_6a1b7d37-8]: "validationErrors": null
    [web_6a1b7d37-8]: }
    [web_6a1b7d37-8]:
    [web_6a1b7d37-8]: [17:42:56 ERR] An internal error occurred during your request!
    [web_6a1b7d37-8]: Volo.Abp.Http.Client.AbpRemoteCallException: An internal error occurred during your request!
    [web_6a1b7d37-8]: at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.ThrowExceptionForResponseAsync(HttpResponseMessage response)
    [web_6a1b7d37-8]: at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync(ClientProxyRequestContext requestContext)
    [web_6a1b7d37-8]: at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync[T](ClientProxyRequestContext requestContext)
    [web_6a1b7d37-8]: at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync[T](String methodName, ClientProxyRequestTypeValue arguments)
    [web_6a1b7d37-8]: at Volo.Forms.Forms.ClientProxies.FormClientProxy.GetListAsync(GetFormListInputDto input)
    [web_6a1b7d37-8]: at lambda_method1849(Closure, Object)
    [web_6a1b7d37-8]: at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    [web_6a1b7d37-8]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
    [web_6a1b7d37-8]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    [web_6a1b7d37-8]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
    [web_6a1b7d37-8]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    [web_6a1b7d37-8]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    [web_6a1b7d37-8]: at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    [web_6a1b7d37-8]: [17:42:56 ERR] Code:
    [web_6a1b7d37-8]: [17:42:56 ERR] Details:
    [web_6a1b7d37-8]: [17:42:56 ERR] ---------- Exception Data ----------
    [web_6a1b7d37-8]: ActivatorChain = Volo.Forms.EntityFrameworkCore.FormsDbContext -> λ:Microsoft.EntityFrameworkCore.DbContextOptions`1[[Volo.Forms.EntityFrameworkCore.FormsDbContext, Volo.Forms.EntityFrameworkCore, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null]]
    [web_6a1b7d37-8]:
    [web_6a1b7d37-8]: [17:42:56 INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'.
    [web_6a1b7d37-8]: [17:42:56 INF] Executed action Volo.Forms.Forms.ClientProxies.FormClientProxy.GetListAsync (Volo.Forms.HttpApi.Client) in 30481.091ms
    [web_6a1b7d37-8]: [17:42:56 INF] Executed endpoint 'Volo.Forms.Forms.ClientProxies.FormClientProxy.GetListAsync (Volo.Forms.HttpApi.Client)'
    [web_6a1b7d37-8]: [17:42:56 INF] Request finished HTTP/2 GET https://localhost:44321/api/forms?filter=&sorting=lastModificationTime%20desc&skipCount=0&maxResultCount=10 application/json - - 500 - application/json;+charset=utf-8 30482.8606ms 

Logs of WebGateway


  • Steps to reproduce the issue:" Download ABP Microservice MVC-.Net 7 Template
  1. Tried adding CMS Kit Pro module with the command -- abp add-module Volo.CmsKit.Pro version 7.0.0 After adding this module, I am unable to view WebApp
  2. Tried adding Forms Module with the command -- abp add-module Volo.Forms version 7.0.0 Forms module is not accessible

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

    Hi,

    The ABP CLI doesn't support add module to a microservice project yet.

    You need to install them manually:

    You can create an app pro template and use the suite to install modules to know which package needs to be installed

    You can also consider extracting a module as a Microservice: https://docs.abp.io/en/commercial/latest/guides/extracting-module-as-microservice

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