Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I used entity framework V6 in win form App. I have correct connection string in App.config

but when I made setup package and install on a client machine I got this error.

"No connection string named 'MyEntities1' could be found in the application config file."

I think after install the program try to use other .config file other wise app.config
Posted
Comments
Staffan Bruun 8-Jun-15 3:29am    
What software did you use to create the setup package?

Did you remember to include the .config file that was generated in the app output folder to the setup package?
sajadzarenejad 8-Jun-15 6:38am    
I used visual studio installer.
yes my project included app.config file
Staffan Bruun 8-Jun-15 7:35am    
What is the name of the config file after it has been installed on the target computer? It should be the same as the executable except that it ends with config not exe.
sajadzarenejad 9-Jun-15 2:55am    
thanks for your responsibility .I used another packager and problem solved

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900