The specified named connection was not found in the configuration, is not intended for use with the EntityClient provider, or is not valid

0
  

The named named connection was not found in the configuration, not   is intended for use with the EntityClient provider, or is not valid.   Description: An unhandled exception occurred during the execution of the   current Web request. Examine the stack trace for   more information about the error and where it originated in the code.

     

Exception Details: System.ArgumentException: The named connection   has not been found in the configuration, it is not intended for   use with the EntityClient provider or is not valid.

public ConnectionString() : base("name=ConnectionString", "ConnectionString")
{ this.ContextOptions.LazyLoadingEnabled = true;

This site is configured in IIS and runs normally on localhost.

But when you run the application through Visual Studio, this error occurs.

Note: When I stop the application in Visual Studio the site normally opens

    
asked by anonymous 30.08.2018 / 21:42

0 answers