entity framework - No connection string could be found in the application config file (But it Does Exist) -
i have web api project published iis , complains there no connection string specific name in config file. verified there entry in web.config file of web api project must not picking up. able run same web.config file locally using visual studio 2013.
i aware referenced start project must have connection string , case me. verified web api project has connection string below (same 1 used on local machine).
<connectionstrings> <add name="mydb" connectionstring="metadata=res://*/mydb.csdl|res://*/mydb.ssdl|res://*/mydb.msl;provider=system.data.sqlclient;provider connection string="data source=localhost\mydb;initial catalog=mydb;integrated security=true;multipleactiveresultsets=true;app=entityframework"" providername="system.data.entityclient"/> </connectionstrings> is complaining config file somewhere else on server?
i tried suggestions in this question no luck.
- if project published in folder on iis, , config file exists in uppermost folder, values may conflicting.
- if config file exists, try enabling option "remove additional files @ destination" when publishing. option location under settings -> file publish options
Comments
Post a Comment