I have the following error when I try to build my solution:
No connection string named 'TechnicalAnalyzerEntities' could be found in the application config file.
The thing is that :
1/ there is one :
<connectionStrings>
<add name="TechnicalAnalyzerEntities" connectionString="metadata=res://*/Data.Database.TAdb.csdl|res://*/Data.Database.TAdb.ssdl|res://*/Data.Database.TAdb.msl;provider=System.Data.SqlClient;provider connection string="data source=PSYKOTROPYK-PC\PSYKOTROPYK;initial catalog=TechnicalAnalyzer;persist security info=True;user id=***;password=***;network library=dbnmpntw;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
</connectionStrings>
2/ there is just one project in my solution (I search and the same error seems to appear when people have one project with the connection string and a startup project without, well not my case)
3/ this error seems not to prevent my project to run, nor Entity Framework to access the data and bind it to my treeview.
Actually the only issue is that there is this error showing in my error list and the MainWindow.xaml file (where the error is referenced) that can't show properly the custom control that then needs this connection string ==> cannot create an instance of "TreeviewSelector". The thing is that the custom control xaml file (TreeviewSelector.xaml as you guessed) is properly shown in the xaml editor.
This is not a dramatic error that prevents me to go forward on my project, but it is annoying to have errors and not to be able to properly use the xaml editor.
N.B.: A few other point that may be of interest : 1/ I use Entity Framework 6.0 2/ The project is on my laptop and the database on my desktop 3/ Blend shows the same MainWindow.xaml error 4/ If I put a copy of my project on my desktop (so on the same system as my database) I have the same problem