WPF/Entity Framework Design Time Exception
-
I'm new to EF, so bear that in mind.. I'm using WPF 4.5 and EF against a SQLite DB. EF was installed when I installed dotConnect for SQLite[^]. I have a WPF user control that calls into the DAL. However, in DESIGN mode the view is showing the error "Connection string "MyConnectionString" could not be found in the configuration file." However, the app.config DOES have the connection string. Anyone know what's going on?
If it's not broken, fix it until it is
-
I'm new to EF, so bear that in mind.. I'm using WPF 4.5 and EF against a SQLite DB. EF was installed when I installed dotConnect for SQLite[^]. I have a WPF user control that calls into the DAL. However, in DESIGN mode the view is showing the error "Connection string "MyConnectionString" could not be found in the configuration file." However, the app.config DOES have the connection string. Anyone know what's going on?
If it's not broken, fix it until it is
Been there done that, but in WCF. In design time you're apparently not using the app.config you think you are. There's a description and kind of solution to one of the ways this problem can occur here[^].
Wrong is evil and must be defeated. - Jeff Ello