Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Page Management - Add/Edit Page - Switch Theme to Blazor Exception Thrown. (5.1.0) #3839

Closed
thabaum opened this issue Feb 19, 2024 · 0 comments

Comments

@thabaum
Copy link
Contributor

thabaum commented Feb 19, 2024

Issue

Description

While using the Oqtane Theme changing the theme on a page (edit page or add page component forms) to Blazor Theme generates a Visual Studio error as shown below in the event log and screenshots.
[x] Tested - Issue Does Not Exist Using Blazor Theme for Site Settings

Event Log Error

An Unexpected Error Has Occurred In Oqtane.Modules.Admin.Pages, Oqtane.Client: The component type must implement Microsoft.AspNetCore.Components.IComponent.

System.ArgumentException: The component type must implement Microsoft.AspNetCore.Components.IComponent.
   at Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.OpenComponent(Int32 sequence, Type componentType)
   at Oqtane.Modules.Admin.Pages.Add.<ThemeSettings>b__42_1(RenderTreeBuilder builder) in C:\Dev\Oqtane\Dev\5.1.0\021824\Oqtane.Client\Modules\Admin\Pages\Add.razor:line 348
   at Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent(Int32 sequence, RenderFragment fragment)
   at Oqtane.Modules.Admin.Pages.Add.<BuildRenderTree>b__0_4(RenderTreeBuilder __builder3) in C:\Dev\Oqtane\Dev\5.1.0\021824\Oqtane.Client\Modules\Admin\Pages\Add.razor:line 204
   at Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent(Int32 sequence, RenderFragment fragment)
   at Oqtane.Modules.Controls.TabPanel.BuildRenderTree(RenderTreeBuilder __builder) in C:\Dev\Oqtane\Dev\5.1.0\021824\Oqtane.Client\Modules\Controls\TabPanel.razor:line 13
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
   
   {"ModuleDefinitionName":"Oqtane.Modules.Admin.Pages, Oqtane.Client","Error":"The component type must implement Microsoft.AspNetCore.Components.IComponent."}

Screenshots

image
image
image

Two issues reported tonight are areas I have not visited previously and are both places recently explored to discover these behaviors that can be easily reproduced.

@thabaum thabaum changed the title Bug: Page Management - Add Page - Switch Theme to Blazor Exception Thrown. Bug: Page Management - Add Page - Switch Theme to Blazor Exception Thrown. (5.1.0) Feb 19, 2024
@thabaum thabaum changed the title Bug: Page Management - Add Page - Switch Theme to Blazor Exception Thrown. (5.1.0) Bug: Page Management - Add/Edit Page - Switch Theme to Blazor Exception Thrown. (5.1.0) Feb 19, 2024
sbwalker added a commit that referenced this issue Feb 20, 2024
fix #3839 - changing theme in Page Add/Edit throwing exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant