I am working on a wpf/VB project that is a front end to an SQL 2015 database.
My Application.xaml includes this snippet:
xmlns:local="clr-namespace:MyApp "
<Application.Resources>
<local:MyDataSet x:Key="dsApp" />
</Application.Resources>
where MyApp is the application and MyDataSet is, well, my data set.
In code behind, I have
dsApp = CType(Application.Current.FindResource("dsApp"), MyDataSet)
This gives the following Error: 'The name "MyDataSet" does not exist in the namespace "clr-namespace:MyApp"' However, the project compiles and runs just fine and connects to the database, returning the required data.
Why am I getting this erroneous error messsage?
ETA: All of my wpf windows are giving the same error message for the "local:" declarations in my XAML. That is apparently where the error(?) is located by I sure don't see it.