Open Closed

CmsKit Poll issue with 5.3.0 upgrade #3297


0
[email protected] 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)
  • 0
    maliming created
    Support Team

    hi

    We will check this.

  • 0
    enisn created
    Support Team

    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>();
    });
    
  • 0
    [email protected] 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.

  • 0
    albert created
    Support Team

    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.

  • 0
    [email protected] 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

  • 0
    maliming created
    Support Team

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

  • 1
    albert created
    Support Team

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

  • 0
    [email protected] created

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

  • 0
    albert created
    Support Team

    approximately 7 days.