❔ d:DesignInstance errors on my forms' root element

I have some in my WPF forms (two of them). It's spitting out some errors that look like bogus. Can someone look at them and tell me what's going on?
Severity Code Description Project File Line Suppression State
Error XDG0008 The name "UserNetwork" does not exist in the namespace "clr-namespace:BestChat.IRC.Global.ViewModel". IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\NetworkEditorDlg.xaml 13
Error XDG0023 A null or zero length string does not represent a valid Type. IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\NetworkEditorDlg.xaml 13
Error XLS0419 Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'BestChat.IRC.Global.ViewModel' that could not be found. IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\ServerDomainEditorDlg.xaml 10
Error XDG0008 The name "ServerInfo" does not exist in the namespace "clr-namespace:BestChat.IRC.Global.ViewModel". IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\ServerDomainEditorDlg.xaml 11
Error XDG0023 A null or zero length string does not represent a valid Type. IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\ServerDomainEditorDlg.xaml 11
Warning XLS1107 Design instance type 'ViewModel:UserNetwork' not found IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\NetworkEditorDlg.xaml 13
Warning XLS1107 Design instance type 'ViewModel:ServerInfo' not found IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\ServerDomainEditorDlg.xaml 11
Severity Code Description Project File Line Suppression State
Error XDG0008 The name "UserNetwork" does not exist in the namespace "clr-namespace:BestChat.IRC.Global.ViewModel". IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\NetworkEditorDlg.xaml 13
Error XDG0023 A null or zero length string does not represent a valid Type. IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\NetworkEditorDlg.xaml 13
Error XLS0419 Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'BestChat.IRC.Global.ViewModel' that could not be found. IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\ServerDomainEditorDlg.xaml 10
Error XDG0008 The name "ServerInfo" does not exist in the namespace "clr-namespace:BestChat.IRC.Global.ViewModel". IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\ServerDomainEditorDlg.xaml 11
Error XDG0023 A null or zero length string does not represent a valid Type. IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\ServerDomainEditorDlg.xaml 11
Warning XLS1107 Design instance type 'ViewModel:UserNetwork' not found IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\NetworkEditorDlg.xaml 13
Warning XLS1107 Design instance type 'ViewModel:ServerInfo' not found IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\ServerDomainEditorDlg.xaml 11
Here's a sample of the source: d:DataContext="{d:DesignInstance Type=ViewModel:UserNetwork}".
17 Replies
JakenVeina
JakenVeina9mo ago
I'm gonna hone in on the one thay says BestChat.IRC.Global.ViewModel is not a namespace that exists.
Will Pittenger
Will Pittenger9mo ago
That was where I was going. But it does. It's a dependency of this project.
JakenVeina
JakenVeina9mo ago
it's not in the current assembly?
Will Pittenger
Will Pittenger9mo ago
Nope.
JakenVeina
JakenVeina9mo ago
then you need to specify that
Will Pittenger
Will Pittenger9mo ago
Go to go. Be back later.
JakenVeina
JakenVeina9mo ago
I'm guessing you originally had it in this assembly, and then moved it
Will Pittenger
Will Pittenger9mo ago
No, I was going direct to the Model. Now I'm not.
JakenVeina
JakenVeina9mo ago
my point being that VS should hace auto-completed the correct specification for that namespace being in a different assembly
Will Pittenger
Will Pittenger9mo ago
Now the xmlns was missing. I tried to add it, but it says there's no such namespace out there.
JakenVeina
JakenVeina9mo ago
huh?
Will Pittenger
Will Pittenger9mo ago
It won't list the namespace when I type "ViewModel". It's as though the project reference is missing--but it isn't. I just checked. I'll check in later.
JakenVeina
JakenVeina9mo ago
the correct syntax is
xmlns:me="clr-namespace:MyNamespace;assembly=MyAssembly"
xmlns:me="clr-namespace:MyNamespace;assembly=MyAssembly"
Will Pittenger
Will Pittenger9mo ago
I suspect even if I had the correct syntax, I'd be told it still couldn't find the assembly.
JakenVeina
JakenVeina9mo ago
why would you suspect that?
Will Pittenger
Will Pittenger9mo ago
Bad experiences and Murphy's law. I think I'm going to put the View Model's functionality back into the Model classes anyway. I only needed a few extra properties. The View Model was a lot of work. But there's no reason I can see why it should claim it can't find the namespace.
Accord
Accord8mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts