Double Page Declaration Causes Object Reference Not Set Error #39270
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
Priority:2
Work that is important, but not critical for the release
Milestone
Is there an existing issue for this?
Describe the bug
If a user accidently adds an extra page declaration such as
Razor Page Duplication
...
A runtime exception is thrown.
Exception on Page
StackTrace
Expected Behavior
(This falls into a user doing a Garbage in, garbage out scenario...) But, this should be caught, if at runtime, then a more robust error describing multiple page declarations found. Or if at compile time, at least as a warning, or better an error.
Steps To Reproduce
Exceptions (if any)
.NET Version
.Net 6
Anything else?
No response
The text was updated successfully, but these errors were encountered: