Copied App.config to (Assembly).exe.config but from folder debug application doesn't run
Posted
by
uugan
on Stack Overflow
See other posts from Stack Overflow
or by uugan
Published on 2012-09-13T09:36:41Z
Indexed on
2012/09/13
9:37 UTC
Read the original article
Hit count: 359
Gives error: "The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid"
App.config looks like and it's same as (Assembly.exe.config) config file for output:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="Entities1" connectionString="metadata=res://*/;provider=System.Data.SqlClient;provider connection string='data source=localhost;initial catalog=DatabaseName;integrated security=True;multipleactiveresultsets=True;App=EntityFramework'" providerName="System.Data.EntityClient" />
</connectionStrings>
</configuration>
How to run exe with it's configuration file? I tried to change '' to quot but nothing has changed.
© Stack Overflow or respective owner