❔ MC3050 compiler error

I added a new project with some custom WPF controls to my project's dependencies. I then added the control to my form, but while the designer accepted the control happily, the XAML compiler is issuing errors that it can't find the control. I'm lost as to why. Same with bindings to the some properties declared by my form. I've heard deleting the .vs folder can fix these problems, but that reset a lot of things. Does someone have a better solution? I have xmlns:local="clr-namespace:BestChat.IRC.Global.View" and xmlns:IrcCtrls="clr-namespace:BestChat.IRC.Global.View.Ctrls;assembly=BestChat.IRC.Global.View.Ctrls" declared on the root element. The binding that complains about not being able to find the dialog class is {Binding Msg, Mode=OneWay, NotifyOnSourceUpdated=True, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:NetworkEditorDlg}}}. The usage of the control is <IrcCtrls:NetworkLogInModesComboBox ... and that control is declared as NetworkLogInModesComboBox in namespace BestChat.IRC.Global.View.Ctrls in the assembly BestChat.IRC.Global.View.Ctrls.dll.
Severity Code Description Project File Line Suppression State
Error MC3050 Cannot find the type 'local:NetworkEditorDlg'. Note that type names are case sensitive. Line 51 Position 5. IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\NetworkEditorDlg.xaml 51
Error MC3050 Cannot find the type 'local:ServerDomainEditorDlg'. Note that type names are case sensitive. Line 65 Position 5. IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\ServerDomainEditorDlg.xaml 65
Severity Code Description Project File Line Suppression State
Error MC3050 Cannot find the type 'local:NetworkEditorDlg'. Note that type names are case sensitive. Line 51 Position 5. IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\NetworkEditorDlg.xaml 51
Error MC3050 Cannot find the type 'local:ServerDomainEditorDlg'. Note that type names are case sensitive. Line 65 Position 5. IRC.Global.View B:\Contents\Best Chat\Code\IRC\Global\View\ServerDomainEditorDlg.xaml 65
21 Replies
Will Pittenger
Will PittengerOP14mo ago
I posted here as no one responded in #chat. Too busy there.
JakenVeina
JakenVeina14mo ago
the XAML designer IS a little notoriously buggy if you really thing you have everything right, close and restart Visual Studio, completely
Will Pittenger
Will PittengerOP14mo ago
OK.
JakenVeina
JakenVeina14mo ago
you can also get a ton of crap build errors in XAML if you have just one error in your C# code otherwise, the error is pretty explicit remember what the problem was last time 😉 (I think that was you)
Will Pittenger
Will PittengerOP14mo ago
The control now loads, but it still fails to find the form for binding.
Accord
Accord14mo 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.
Will Pittenger
Will PittengerOP14mo ago
Nope.
JakenVeina
JakenVeina14mo ago
what does this mean?
Will Pittenger
Will PittengerOP14mo ago
Well, I have a binding in NetworkEditorDlg with {CalcBinding:Binding !Ready, Mode=OneWay, NotifyOnSourceUpdated=True, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:NetworkEditorDlg}}}. I didn't know if ElementName=window would find properties I declare in NetworkEditorDlg.
JakenVeina
JakenVeina14mo ago
if they're dependency properties, it would
Will Pittenger
Will PittengerOP14mo ago
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
JakenVeina
JakenVeina14mo ago
yes
Will Pittenger
Will PittengerOP14mo ago
OK. There's a lot of activity in there.
JakenVeina
JakenVeina14mo ago
in where?
Will Pittenger
Will PittengerOP14mo ago
#help.
JakenVeina
JakenVeina14mo ago
sure and none on your particular question probably cause no one knows or has any information to offer
Will Pittenger
Will PittengerOP14mo ago
I didn't know if there's a bug in CalcBinding or if I made a mistake.
JakenVeina
JakenVeina14mo ago
me neither except that there's probably not a bug
Will Pittenger
Will PittengerOP14mo ago
Figures.
JakenVeina
JakenVeina14mo ago
that's pretty much the safe bet, no matter who you are it's probably your code
Accord
Accord14mo 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