© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
31 replies
Will Pittenger

❔ 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"
    xmlns:local="clr-namespace:BestChat.IRC.Global.View"
and
xmlns:IrcCtrls="clr-namespace:BestChat.IRC.Global.View.Ctrls;assembly=BestChat.IRC.Global.View.Ctrls"
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}}}
{Binding Msg, Mode=OneWay, NotifyOnSourceUpdated=True, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:NetworkEditorDlg}}}
. The usage of the control is
<IrcCtrls:NetworkLogInModesComboBox ...
<IrcCtrls:NetworkLogInModesComboBox ...
and that control is declared as
NetworkLogInModesComboBox
NetworkLogInModesComboBox
in namespace
BestChat.IRC.Global.View.Ctrls
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    
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Compiler error [Answered]
C#CC# / help
4y ago
Compiler Error CS1503 Help
C#CC# / help
2y ago
✅ GRPC Compiler error in Docker
C#CC# / help
4y ago
❔ Running aspnet_compiler.exe gives an error
C#CC# / help
3y ago