Ends in:
7 DAYS
13 HRS
20 MIN
4 SEC
Ends in:
7 D
13 H
20 M
4 S
Open Closed

CmsKit Poll issue with 5.3.0 upgrade #3297


User avatar
0
mattw@agilenova.com created

Hello, I just upgraded from 5.2.1 to 5.3.0 and am encountering an error when I access the Cms Poll feature in the admin console (https://localhost/Cms/Polls). I was previously using CmsKitPro successfully in 5.2.1 and have the following enabled in Domain Shared:

            GlobalFeatureManager.Instance.Modules.CmsKit(cmsKit =>
            {
                cmsKit.EnableAll();
            });

            GlobalFeatureManager.Instance.Modules.CmsKitPro(cmsKitPro =>
            {
                cmsKitPro.EnableAll();
            });
  • ABP Framework version: v5.3.0
  • UI type: MVC/Razor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): No
  • Exception message and stack trace: An unhandled exception occurred while processing the request. InvalidOperationException: The type 'gfU5S6oIGXGV5eWjNvK.tImOMJoYoJGVUBJc5hr' is not a valid page. A page must define a public, non-static 'Model' property. Microsoft.AspNetCore.Mvc.ApplicationModels.DefaultPageApplicationModelProvider.CreateModel(PageActionDescriptor actionDescriptor, TypeInfo pageTypeInfo)

Show raw exception details System.InvalidOperationException: The type 'gfU5S6oIGXGV5eWjNvK.tImOMJoYoJGVUBJc5hr' is not a valid page. A page must define a public, non-static 'Model' property. at Microsoft.AspNetCore.Mvc.ApplicationModels.DefaultPageApplicationModelProvider.CreateModel(PageActionDescriptor actionDescriptor, TypeInfo pageTypeInfo) at Microsoft.AspNetCore.Mvc.ApplicationModels.DefaultPageApplicationModelProvider.OnProvidersExecuting(PageApplicationModelProviderContext context) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.CompiledPageActionDescriptorFactory.CreateCompiledDescriptor(PageActionDescriptor actionDescriptor, CompiledViewDescriptor viewDescriptor) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.DefaultPageLoader.LoadAsyncCore(PageActionDescriptor actionDescriptor, EndpointMetadataCollection endpointMetadata) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageLoaderMatcherPolicy.ApplyAsyncAwaited(PageLoader pageLoader, CandidateSet candidates, Task`1 actionDescriptorTask, Int32 index) at Microsoft.AspNetCore.Routing.Matching.DfaMatcher.SelectEndpointWithPoliciesAsync(HttpContext httpContext, IEndpointSelectorPolicy[] policies, CandidateSet candidateSet) at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.

  • Steps to reproduce the issue:" dotnet build dotnet run https://localhost/Cms/Polls Exception

  • NOTES:

    • I do not require the polling feature but did not see an option to disable this feature individually.
    • I receive the same error when attempting to run a dockerized version of the web application and it prevents the container from starting.

9 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We will check this.

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hi, We're checking it. Until we find and solve problem, can you disable it with following writing type:

    GlobalFeatureManager.Instance.Modules.CmsKitPro(cmsKitPro =>
    {
        cmsKitPro.EnableAll();
    
        cmsKitPro.Disable<PollsFeature>();
    });
    
  • User Avatar
    0
    mattw@agilenova.com created

    I have made the change in Domain.Shared / XXAppGlobalFeatureConfigurator.cs. Although the Poll menu option is no longer visible from the admin portal, I am still receiving the same exception when running the published (precompiled) web project using the dotnet cli or in a docker container.

  • User Avatar
    0
    alper created
    Support Team Director

    by the way, we're working on the The type 'gfU5S6oIGXGV5eWjNvK.tImOMJoYoJGVUBJc5hr' is not a valid page. issue. but if we find a problem there, the fix will come with the next patch version.

  • User Avatar
    0
    mattw@agilenova.com created

    Understood, that is the error that I receive when I attempt to publish and run the Web project in 5.3.0 even when the Polling feature is disabled.

    dotnet publish "MyCompany.MyProduct.Web.csproj" -c Release -o /app dotnet /app/MyCompany.MyProduct.Web.dll**

    [10:31:34 FTL] Host terminated unexpectedly! Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module ... Culture=neutral, PublicKeyToken=null: The type 'qgApoZ2OmDdJqiAoXp5.L4ObZ82mStp54vqoB0A' is not a valid page. A page must define a public, non-static 'Model' property.. See the inner exception for details. ---> System.InvalidOperationException: The type 'qgApoZ2OmDdJqiAoXp5.L4ObZ82mStp54vqoB0A' is not a valid page. A page must define a public, non-static 'Model' property. at Microsoft.AspNetCore.Mvc.ApplicationModels.DefaultPageApplicationModelProvider.CreateModel(PageActionDescriptor actionDescriptor, TypeInfo pageTypeInfo) at Microsoft.AspNetCore.Mvc.ApplicationModels.DefaultPageApplicationModelProvider.OnProvidersExecuting(PageApplicationModelProviderContext context

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, We will fix and release the 5.3 patch version asap.

  • User Avatar
    1
    alper created
    Support Team Director

    this issue has been fixed and will be delivered with v5.3.1

  • User Avatar
    0
    mattw@agilenova.com created

    Do you have an estimate on when v5.3.1 will be available? Thanks

  • User Avatar
    0
    alper created
    Support Team Director

    approximately 7 days.

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