I am writing a wpf application (EF, dot net 4, wix 3.6). It compiles fine. I can debug the app and everything works. I can run the produced executable and everything works. I try to package it up with Wix which successfully produces an .msi file, which copies the executable to the right place. When I run the msi-deployed .exe I get the error above.
I've checked out the questions here: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid, and here: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid. The second link isn't the solution as that deals with web.config and I'm in a windows desktop environment.
The first solution talks about multiple projects and the EF project's config needing duplication in the other projects. In my case the only two projects are the Main Application (which includes the EF stuff) and the Wix installer project.
In any event, I copied the App.config
to the Wix project, but that didn't make any difference. I had a lot of trouble getting the wix stuff going, but I think it's right now, however that might be a pointer to the solution.
Can anyone help?