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

已有打开的与此 Command 相关联的 DataReader,必须首先将它关闭。

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

异常详细信息: System.InvalidOperationException: 已有打开的与此 Command 相关联的 DataReader,必须首先将它关闭。

源错误:

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

堆栈跟踪:


[InvalidOperationException: 已有打开的与此 Command 相关联的 DataReader,必须首先将它关闭。]
   System.Data.SqlClient.SqlInternalConnectionTds.ValidateConnectionForExecute(SqlCommand command) +6548689
   System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +301
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +151
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +104
   System.Data.SqlClient.SqlCommand.ExecuteScalar() +270
   HX.Database.DataContext.ExecuteQuery(String sql, Object[] params) +112
   HX.Config.ConfigAccess.GetConfigDocument(String siteDomain) +1861
   HX.Config.ConfigAccess.CreateAccountConfigManager(String accountDomain) +126
   HX.Config.ConfigAccess.get_CurrentAccountConfigManager() +253
   HX.Account.AccountAccess.Authorize(RouteData routeData) +322
   HX.Extension._Closure$__1-0._Lambda$__0(Int32 result, Int64 publicNumberID, String weixinUserOpenID) +1823
   HX.Extension._Closure$__1-0._Lambda$__R1(Int32 a0, Int64 a1, Object a2) +111
   HX.WeixinAPI.OAuth2.Start() +2201
   HX.Extension.Helper.Initialize(IExplorer explorer, RouteData routeData) +803
   HX.Web.SiteController.Initialize(RequestContext requestContext) +91
   System.Web.Mvc.Controller.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +246
   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__4(AsyncCallback asyncCallback, Object asyncState, ProcessRequestState innerState) +108
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +111
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +150
   System.Web.Mvc.Async.AsyncResultWrapper.Begin(AsyncCallback callback, Object callbackState, BeginInvokeDelegate`1 beginDelegate, EndInvokeVoidDelegate`1 endDelegate, TState invokeState, Object tag, Int32 timeout, SynchronizationContext callbackSyncContext) +203
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +681
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +12272591
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288


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