View Issue Details

IDProjectCategoryView StatusLast Update
0004320NoesisGUIC++ SDKpublic2026-01-22 14:16
ReporterJT Assigned Tojsantos  
PrioritynormalSeveritytrivial 
Status resolvedResolutionreopened 
Product Version3.2.3 
Target Version3.2.11Fixed in Version3.2.11 
Summary0004320: Misleading error messages with duplicate namespace aliases
Description

If you define multiple namespace aliases that point to the same thing
e.g.

xmlns:foo="my.namespace"
xmlns:bar="my.namespace"

the error message for associated unknown elements might use the wrong alias
e.g.

<bar:NonExistentControl/>

produces

"Unknown element type 'foo:NonExistentControl'"

I get this same result using both the C++ SDK, and XamlPlayer.
I am not sure if this counts as a bug or not, but it is misleading.

Attached Files
Grid.xaml (233 bytes)   
<Grid
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:foo="namespace"
    xmlns:bar="namespace">

    <bar:NonExistentControl/>
</Grid>
Grid.xaml (233 bytes)   
PlatformAny

Activities

jsantos

jsantos

2026-01-21 12:40

manager   ~0011739

Last edited: 2026-01-21 12:41

Having a look at this issue with Noesis 3.2.11 and everything seems to be working fine:

<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:foo="clr-namespace:FOO"
  xmlns:bar="clr-namespace:BAR">

  <StackPanel>
    <foo:NonExistentControl/>
    <bar:NonExistentControl/>
  </StackPanel>

</Page>

I am getting two errors:

Unknown element type 'foo:NonExistenControl' (FOO.NonExistenControl)
Unknown element type 'bar:NonExistenControl' (BAR.NonExistenControl)
JT

JT

2026-01-21 13:16

reporter   ~0011741

Last edited: 2026-01-21 13:43

My sample defines different aliases for the same namespace, whereas yours defines different aliases for different namespaces

If I use:

<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:foo="clr-namespace:FOO"
  xmlns:bar="clr-namespace:FOO">

  <StackPanel>
    <foo:NonExistentControl/>
    <bar:NonExistentControl/>
  </StackPanel>
</Page>

I get:
Unknown element type 'foo:NonExistentControl' (FOO.NonExistentControl)
Unknown element type 'foo:NonExistentControl' (FOO.NonExistentControl)

jsantos

jsantos

2026-01-21 13:44

manager   ~0011743

You are right! I am reproducing the issue.

jsantos

jsantos

2026-01-22 14:16

manager   ~0011754

Fixed in r16528

Thanks for the feedback!

Issue History

Date Modified Username Field Change
2025-07-29 07:24 JT New Issue
2025-07-29 07:24 JT File Added: Grid.xaml
2025-07-29 10:21 sfernandez Assigned To => jsantos
2025-07-29 10:21 sfernandez Status new => assigned
2025-07-29 10:21 sfernandez Target Version => 3.2.9
2025-10-02 00:48 jsantos Target Version 3.2.9 => 3.2.10
2025-10-20 18:25 jsantos Target Version 3.2.10 => 3.2.11
2026-01-20 19:32 jsantos Target Version 3.2.11 => 3.2.12
2026-01-20 19:39 jsantos Target Version 3.2.12 => 3.2.11
2026-01-21 12:38 jsantos Description Updated
2026-01-21 12:40 jsantos Note Added: 0011739
2026-01-21 12:40 jsantos Note Edited: 0011739
2026-01-21 12:41 jsantos Note Edited: 0011739
2026-01-21 12:41 jsantos Status assigned => resolved
2026-01-21 12:41 jsantos Resolution open => unable to reproduce
2026-01-21 13:16 JT Status resolved => feedback
2026-01-21 13:16 JT Resolution unable to reproduce => reopened
2026-01-21 13:16 JT Note Added: 0011741
2026-01-21 13:43 jsantos Note Edited: 0011741
2026-01-21 13:44 jsantos Note Added: 0011743
2026-01-22 14:16 jsantos Status feedback => resolved
2026-01-22 14:16 jsantos Note Added: 0011754
2026-01-22 14:16 jsantos Fixed in Version => 3.2.11