Entity Framework: No connection string named 'ImportEntities' could be found in the application config file.

I got this message when writing a PoC application for Azure. The message is quite self explanatory, but the key is WHICH PROJECT TO UPDATE. I have multiple projects, but my startup was a Console Application (for testing).

The solution is to add the setting (in app.config or web.config) to the solution STARTUP PROJECT.

<configuration>
  <connectionStrings>
    <add name="ImportEntities" connectionString="...." />
  </connectionStrings>
</configuration>

Comments

Popular posts from this blog

SharePoint 2013: Error updating managed account credentials

How can I call a JIRA api through Powershell?