“/”应用程序中的服务器错误。

指定的命名连接在配置中找不到、非计划用于 EntityClient 提供程序或者无效。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: 指定的命名连接在配置中找不到、非计划用于 EntityClient 提供程序或者无效。

源错误:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[ArgumentException: 指定的命名连接在配置中找不到、非计划用于 EntityClient 提供程序或者无效。]
   System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString) +853
   System.Data.Objects.ObjectContext.CreateEntityConnection(String connectionString) +53
   System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +453
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +134
   System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +365
   System.Web.UI.WebControls.ListControl.PerformSelect() +43
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +134
   System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +36
   System.Web.UI.Control.PreRenderRecursiveInternal() +162
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6875


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3930.0