Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8953547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:07:15+00:00 2026-06-15T14:07:15+00:00

I am writing a wpf application (EF, dot net 4, wix 3.6). It compiles

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:07:16+00:00Added an answer on June 15, 2026 at 2:07 pm

    OK, as Gert Arnold correctly pointed out, the config file had not been copied to the application directory, so the connection strings couldn’t be found. The config file created is named MyAppName.exe.config, and contains stuff from the App.config file created in VS and other bits (like EF config details).

    (Something must be different between the settings for the VS2010 installer and the Wix installer as the .msi deployment has never involved a .config file before.)

    In any event, adding the .exe.config file to the Product.wxs file as a component contained within the main application feature solved the problem.

    Newb notes:

    • If you copy and paste the component tag, remember to set KeyPath=”no”.

    • The path to
      the files being deployed is relative to the location of the .wxs file

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a .NET 3.5 WPF application in C#. This application needs to
I am currently writing a WPF application which does command-line argument handling in App.xaml.cs
I'm writing a WPF calculator app. In this application I have TextBox that get
I've got an issue with a WPF application that I'm writing. The app needs
Im writing a WPF application that has a zoom and pan ability, but what
I'm writing a WPF application with C# as the code behind and I want
I am writing a WPF application on WinXP and I have overridden the default
I'm writing a WPF application and trying to bind an image to my view
I'm writing a WPF application that uses a component, and this component returns a
I'm writing my first WPF application and I'm trying to implement a fade animation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.