Q:

Argument Exception

Exception:

The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.

Method where exception happened:
/// <summary>
/// Initializes a new DSAplcEntities object using the connection string found in the 'DSAplcEntities' section of the application configuration file.
/// </summary>
public DSAplcEntities() : base("name=DSAplcEntities", "DSAplcEntities")
{
      this.ContextOptions.LazyLoadingEnabled = true;
      OnContextCreated();
 }

What exactly does this exception mean and how can I fix it?

A:

Found the solution. The problem was that I was using WCF Services in my project and I did not copy the connection string to the App.Config inside the service solution.

