Open Closed

qgApoZ2OmDdJqiAoXp5.L4ObZ82mStp54vqoB0A is not a valid page error #3301


User avatar
0
Tony_Albutt created
  • ABP Framework version: v5.3.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I have updated my solution from version 5.1.4 to version 5.3.0

I have made too many changes and commits to roll back to version 5.2

The application runs in the development environment, but reports an error when deployed.

This is the line that throws the error

await app.InitializeApplicationAsync();

This is line 38 in ITX.Web\Program.cs

What can I do the fix this Regards Tony

This is from the log file

2022-06-22 09:40:02.562 +02:00 [INF] Starting IdentityServer4 version 4.1.2+997a6cdd643e46cd5762b710c4ddc43574cbec2e
2022-06-22 09:40:05.038 +02:00 [WRN] Savepoints are disabled because Multiple Active Result Sets (MARS) is enabled. If 'SaveChanges' fails, then the transaction cannot be automatically rolled back to a known clean state. Instead, the transaction should be rolled back by the application before retrying 'SaveChanges'. See https://go.microsoft.com/fwlink/?linkid=2149338 for more information. To identify the code which triggers this warning, call 'ConfigureWarnings(w => w.Throw(SqlServerEventId.SavepointsDisabledBecauseOfMARS))'.
2022-06-22 09:40:05.179 +02:00 [INF] Using the default authentication scheme Identity.Application for IdentityServer
2022-06-22 09:40:05.349 +02:00 [WRN] Using an in-memory repository. Keys will not be persisted to storage.
2022-06-22 09:40:05.349 +02:00 [WRN] Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits.
2022-06-22 09:40:06.770 +02:00 [FTL] Host terminated unexpectedly!
Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module ITX.Web.ITXWebModule, ITX.Web, Version=1.0.0.0, 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)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.CompiledPageActionDescriptorFactory.CreateCompiledDescriptor(PageActionDescriptor actionDescriptor, CompiledViewDescriptor viewDescriptor)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.CompiledPageActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.UpdateCollection()
   at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.Initialize()
   at Microsoft.AspNetCore.Mvc.Routing.ActionEndpointDataSourceBase.<>c__DisplayClass11_0.<Subscribe>b__0()
   at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func`1 changeTokenProducer, Action changeTokenConsumer)
   at Microsoft.AspNetCore.Mvc.Routing.ActionEndpointDataSourceBase.Subscribe()
   at Microsoft.AspNetCore.Mvc.Routing.ControllerActionEndpointDataSource..ctor(ControllerActionEndpointDataSourceIdProvider dataSourceIdProvider, IActionDescriptorCollectionProvider actions, ActionEndpointFactory endpointFactory, OrderedEndpointsSequenceProvider orderSequence)
   at Microsoft.AspNetCore.Builder.ControllerEndpointRouteBuilderExtensions.GetOrCreateDataSource(IEndpointRouteBuilder endpoints)
   at Microsoft.AspNetCore.Builder.ControllerEndpointRouteBuilderExtensions.MapControllerRoute(IEndpointRouteBuilder endpoints, String name, String pattern, Object defaults, Object constraints, Object dataTokens)
   at Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule.&lt;&gt;c.&lt;ConfigureServices&gt;b__1_10(EndpointRouteBuilderContext endpointContext)
   at Microsoft.AspNetCore.Builder.AbpAspNetCoreApplicationBuilderExtensions.&lt;&gt;c__DisplayClass0_0.&lt;UseConfiguredEndpoints&gt;b__0(IEndpointRouteBuilder endpoints)
   at Microsoft.AspNetCore.Builder.EndpointRoutingApplicationBuilderExtensions.UseEndpoints(IApplicationBuilder builder, Action`1 configure)
   at Microsoft.AspNetCore.Builder.AbpAspNetCoreApplicationBuilderExtensions.UseConfiguredEndpoints(IApplicationBuilder app, Action`1 additionalConfigurationAction)
   at ITX.Web.ITXWebModule.OnApplicationInitialization(ApplicationInitializationContext context) in C:\Users\antho\source\repos\ITX_New\ITX\aspnet-core\src\ITX.Web\ITXWebModule.cs:line 456
   at Volo.Abp.Modularity.AbpModule.OnApplicationInitializationAsync(ApplicationInitializationContext context)
   at Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor.InitializeAsync(ApplicationInitializationContext context, IAbpModule module)
   at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context)
   --- End of inner exception stack trace ---
   at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context)
   at Volo.Abp.AbpApplicationBase.InitializeModulesAsync()
   at Volo.Abp.AbpApplicationWithExternalServiceProvider.InitializeAsync(IServiceProvider serviceProvider)
   at Microsoft.AspNetCore.Builder.AbpApplicationBuilderExtensions.InitializeApplicationAsync(IApplicationBuilder app)
   at ITX.Web.Program.Main(String[] args) in C:\Users\antho\source\repos\ITX_New\ITX\aspnet-core\src\ITX.Web\Program.cs:line 38

35 Answer(s)
  • User Avatar
    0
    Sturla created

    Unfortunately we are using that and the time it would take me to take it out and statically write everything will probably take longer than wait for a fix.

    @EngincanV can you give us some feedback on this? Are you working on a fix (or fixed it) and will you not deploy it right away as a hotfix and not await until you have lots of other features in it?

  • User Avatar
    0
    Sturla created

    Please add your issues here if you are facing issues for 5.3.1 https://support.abp.io/QA/Questions/3364/ABP-v531-Problems

  • User Avatar
    0
    alper created
    Support Team Director

    ABP v5.3.2 has just been released. This issue has been fixed

  • User Avatar
    0
    Sturla created

    Sorry but the issue has not been fixed! I just updated to 5.3.2 and deployed it and am still getting this error! What is going on? Have you tried to deploy this code on a cloud environment because like previously stated it works locally but not in Azure...

    2022-07-09 08:58:37.268 +00:00 [FTL] BSR.Beinni.IdentityServer terminated unexpectedly!
    Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module BSR.Beinni.BeinniIdentityServerModule, BSR.Beinni.IdentityServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: The type 'ge8NEZ8y2lBa5les2er.bEPl4e8xKkvM5juVjoG' 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 'ge8NEZ8y2lBa5les2er.bEPl4e8xKkvM5juVjoG' 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.CompiledPageActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context)
       at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.UpdateCollection()
       at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.Initialize()
       at Microsoft.AspNetCore.Mvc.Routing.ActionEndpointDataSourceBase.<>c__DisplayClass11_0.<Subscribe>b__0()
       at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func`1 changeTokenProducer, Action changeTokenConsumer)
       at Microsoft.AspNetCore.Mvc.Routing.ActionEndpointDataSourceBase.Subscribe()
       at Microsoft.AspNetCore.Mvc.Routing.ControllerActionEndpointDataSource..ctor(ControllerActionEndpointDataSourceIdProvider dataSourceIdProvider, IActionDescriptorCollectionProvider actions, ActionEndpointFactory endpointFactory, OrderedEndpointsSequenceProvider orderSequence)
       at Microsoft.AspNetCore.Builder.ControllerEndpointRouteBuilderExtensions.GetOrCreateDataSource(IEndpointRouteBuilder endpoints)
       at Microsoft.AspNetCore.Builder.ControllerEndpointRouteBuilderExtensions.MapControllerRoute(IEndpointRouteBuilder endpoints, String name, String pattern, Object defaults, Object constraints, Object dataTokens)
       at Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule.&lt;&gt;c.&lt;ConfigureServices&gt;b__1_10(EndpointRouteBuilderContext endpointContext)
       at Microsoft.AspNetCore.Builder.AbpAspNetCoreApplicationBuilderExtensions.&lt;&gt;c__DisplayClass0_0.&lt;UseConfiguredEndpoints&gt;b__0(IEndpointRouteBuilder endpoints)
       at Microsoft.AspNetCore.Builder.EndpointRoutingApplicationBuilderExtensions.UseEndpoints(IApplicationBuilder builder, Action`1 configure)
       at Microsoft.AspNetCore.Builder.AbpAspNetCoreApplicationBuilderExtensions.UseConfiguredEndpoints(IApplicationBuilder app, Action`1 additionalConfigurationAction)
       at BSR.Beinni.BeinniIdentityServerModule.OnApplicationInitialization(ApplicationInitializationContext context) in /home/vsts/work/1/s/src/BSR.Beinni.IdentityServer/BeinniIdentityServerModule.cs:line 324
       at Volo.Abp.Modularity.AbpModule.OnApplicationInitializationAsync(ApplicationInitializationContext context)
       at Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor.InitializeAsync(ApplicationInitializationContext context, IAbpModule module)
       at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context)
       --- End of inner exception stack trace ---
       at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context)
       at Volo.Abp.AbpApplicationBase.InitializeModulesAsync()
       at Volo.Abp.AbpApplicationWithExternalServiceProvider.InitializeAsync(IServiceProvider serviceProvider)
       at Microsoft.AspNetCore.Builder.AbpApplicationBuilderExtensions.InitializeApplicationAsync(IApplicationBuilder app)
       at BSR.Beinni.Program.Main(String[] args) in /home/vsts/work/1/s/src/BSR.Beinni.IdentityServer/Program.cs:line 35
    
    
  • User Avatar
    0
    Tony_Albutt created

    What I found, is that they removed the Volo.CmsKit.Admin.Web.dll from the .web project.

    I have tried to re-enable this code that I disabled, and you cant, as the package has been removed

    If you create a new project, you will see that the code from this link has been removed. https://support.abp.io/QA/Questions/3301#answer-4c49fc06-f135-0eba-3291-3a04c6eacacf

    I don't know if the rest if the CMS kit is working.

    Regards Tony

  • User Avatar
    0
    alper created
    Support Team Director

    @Sturla but yours is different

    BSR.Beinni.IdentityServer terminated unexpectedly!

    In the IdentityServer project, there's no CmsKit reference. I run a vanilla 5.3.2 on my local and Identity Server project is running.

    Can you try to reproduce it on a brand new 5.3.2?

  • User Avatar
    0
    Sturla created

    In the IdentityServer project, there's no CmsKit reference.

    The reason for that is that I´m using a Blazor backend so there was no other place to put the CMS functionality (since Blazor doesn´t have it).

    And it worked fine before updating to +5.3.0.

    Can you try to reproduce it on a brand new 5.3.2?

    As you say mine is different and I need CMS in my Identity Server. Updating to 5.3.2 always gives me the same error (only on published site.)

  • User Avatar
    0
    alper created
    Support Team Director

    ok I'll retest it after publishing

  • User Avatar
    0
    alper created
    Support Team Director

    I reopened this issue. We are still on it.

  • User Avatar
    0
    gizem.kurt created
    Support Team QA Test Engineer

    When I followed the steps below, the application worked without any problems.

    1. I created an MVC project with public property (Version: 5.3.2)
    2. I published the project with the 'dotnet publish' command and ran the project. Screenshot is below.

    Test Result: Cms Kit page is displayed and it is seen that adding and updating records can be done without any problems.

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