Uploaded May 2025 | Updated November 2026, 17 hours ago
In Episode 77 of The Blazor Puzzle, Carl Franklin and Jeff Fritz uncover a subtle but frustrating issue: naming your Blazor component Task.razor will break your appβand the error messages wonβt help much.
π« If youβve ever seen the cryptic error:
"Return type must be Task to match overridden member ComponentBase.OnInitializedAsync..."
β¦it might not be your code at allβit could just be the name of your file.
π What You'll Learn:
βοΈ Why naming a Razor file Task.razor causes compiler confusion
βοΈ How Razor files are turned into C# classes (and how names matter!)
βοΈ The difference between Task (system type) and Task (your component)
βοΈ How to fix the issue quickly (just rename the file!)
βοΈ Bonus insight on namespace collisions and long-term cleanup tips
π¬ Big thanks to viewer Justin Lamping from Rothschild, Wisconsin for sending in this weekβs puzzle! Enjoy your Blazor Puzzle mug!
π‘ Got a weird bug that stumped you? Send it to blazorpuzzle@appvnext.com β and you might get featured (and muggedβin a good way)!
π« Have a config conundrum or a puzzling Blazor problem? Send it to blazorpuzzle@appvnext.com β and you could win a Blazor Puzzle mug!
π Resources & Code:
github.com/BlazorPuzzle/Puzzle-77
π Want to level up your Blazor testing skills? Subscribe & join the puzzle! π§©
Get Started Today β Free 30 Day Trial
dxpr.es/NUGET
dxpr.es/FREE-TRIAL
Pricing and Online Demos
dxpr.es/BUY
dxpr.es/DEMOS
We Are Here to Help
dxpr.es/SUPPORT
Follow DevExpress on Social Media
dxpr.es/FACEBOOK
dxpr.es/TWITTER
dxpr.es/BLOGS
Review Customer Testimonials
dxpr.es/TESTIMONIALS
dxpr.es/MARKETPLACE
#DevExpress, #devexpress_blazor #blazor #microsoft #carlfranklin #Jefffritz #Blazor #DotNet #WebDevelopment #CSharp #NamingBug #BlazorPuzzle #RazorComponents #ComponentErrors #DotNet9
In Episode 77 of The Blazor Puzzle, Carl Franklin and Jeff Fritz uncover a subtle but frustrating issue: naming your Blazor component Task.razor will break your appβand the error messages wonβt help much.
π« If youβve ever seen the cryptic error:
"Return type must be Task to match overridden member ComponentBase.OnInitializedAsync..."
β¦it might not be your code at allβit could just be the name of your file.
π What You'll Learn:
βοΈ Why naming a Razor file Task.razor causes compiler confusion
βοΈ How Razor files are turned into C# classes (and how names matter!)
βοΈ The difference between Task (system type) and Task (your component)
βοΈ How to fix the issue quickly (just rename the file!)
βοΈ Bonus insight on namespace collisions and long-term cleanup tips
π¬ Big thanks to viewer Justin Lamping from Rothschild, Wisconsin for sending in this weekβs puzzle! Enjoy your Blazor Puzzle mug!
π‘ Got a weird bug that stumped you? Send it to blazorpuzzle@appvnext.com β and you might get featured (and muggedβin a good way)!
π« Have a config conundrum or a puzzling Blazor problem? Send it to blazorpuzzle@appvnext.com β and you could win a Blazor Puzzle mug!
π Resources & Code:
github.com/BlazorPuzzle/Puzzle-77
π Want to level up your Blazor testing skills? Subscribe & join the puzzle! π§©
Get Started Today β Free 30 Day Trial
dxpr.es/NUGET
dxpr.es/FREE-TRIAL
Pricing and Online Demos
dxpr.es/BUY
dxpr.es/DEMOS
We Are Here to Help
dxpr.es/SUPPORT
Follow DevExpress on Social Media
dxpr.es/FACEBOOK
dxpr.es/TWITTER
dxpr.es/BLOGS
Review Customer Testimonials
dxpr.es/TESTIMONIALS
dxpr.es/MARKETPLACE
#DevExpress, #devexpress_blazor #blazor #microsoft #carlfranklin #Jefffritz #Blazor #DotNet #WebDevelopment #CSharp #NamingBug #BlazorPuzzle #RazorComponents #ComponentErrors #DotNet9










