我們的Workflow Enging所用的數(shù)據(jù)庫(kù)是安裝在流程服務(wù)器上的。今天該服務(wù)器有問(wèn)題,請(qǐng)系統(tǒng)管理員重啟。重啟后發(fā)現(xiàn)了以下問(wèn)題:
經(jīng)檢查出問(wèn)題的都出在和流程數(shù)據(jù)庫(kù)交互的地方。
使用SQL Server的監(jiān)視器沒(méi)有發(fā)現(xiàn)死鎖,使用SQL Server的管理器也可以正常連接。
最后發(fā)現(xiàn)IIS對(duì)該服務(wù)器的連接數(shù)太多造成的。當(dāng)重啟流程服務(wù)器時(shí),IIS應(yīng)用程序池一直在試圖連接該數(shù)據(jù)庫(kù),因?yàn)檫B接不上所以都Hold在那兒了。將IIS的應(yīng)用程序池重新回收一下后問(wèn)題解決。
Server Error in '/' Application.
ExecuteReader requires an open and available Connection. The connection's current state is closed.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details:
System.InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.
Source Error:
? Line 1:? <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PUR_Material_Query.aspx.cs" Inherits="GraceSemi.NET.Web.Pages.PUR.Common.PUR_Material_Query" %> Line 2:? <%@ Register assembly="Anthem" namespace="Anthem" tagprefix="anthem" %> Line 3:? <%@ Register src="../SpareParts/PUR_SparePartsMenu.ascx" tagname="PUR_SparePartsMenu" tagprefix="uc1" %> |
Source File:
c:\inetpub\wwwroot\GraceSemi\Pages\PUR\Common\PUR_Material_Query.aspx
?? Line:
1
Stack Trace:
? [InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.] ?? System.Data.SqlClient.SqlConnection.GetOpenConnection(String method) +6317475 ?? System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) +13 ?? System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +271 ?? System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +138 ?? System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +28 ?? System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +256 ?? System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +19 ?? System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() +23 ?? GraceSemi.NET.Data.Common.ConnectionHandler.ExecuteReader(Command cmd) +170 ?? GraceSemi.NET.Data.Common.ConnectionContext.ExecuteReader(Command cmd) +82 ?? GraceSemi.NET.Data.Common.ConnectionContext.List(Type type, Command cmd, Region region) +594 ?? GraceSemi.NET.Data.Common.ConnectionContext.ListFirst(Type type, Command cmd) +90 ?? GraceSemi.NET.Data.Common.ConnectionContext.ListFirst(Command cmd) +111 ?? GraceSemi.NET.Data.Common.EntityBase.OnListFirst(IConnectinContext cc, String from, Expression expression, String orderby, String groupby) +586 ?? GraceSemi.NET.Data.Common.EntityBase.ExOnListFirst(IConnectinContext cc, String from, Expression expression, String orderby, String groupby) +164 ?? GraceSemi.NET.Data.Common.Expression.ListFirst(IConnectinContext cc, String orderby) +348 ?? GraceSemi.NET.Data.Common.Expression.ListFirst(IConnectinContext cc) +131 ?? GraceSemi.NET.Business.t_User.set_UserName(String value) +244 ?? GraceSemi.NET.TaskPage.SSO(String UserName) +144 ?? GraceSemi.NET.TaskPage.InitializeCulture() +3642 ?? ASP.pages_pur_common_pur_material_query_aspx.__BuildControlTree(pages_pur_common_pur_material_query_aspx __ctrl) in c:\inetpub\wwwroot\GraceSemi\Pages\PUR\Common\PUR_Material_Query.aspx:1 ?? ASP.pages_pur_common_pur_material_query_aspx.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3a66716a\f24c2056\App_Web_0jitdpta.3.cs:0 ?? System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +72 ?? System.Web.UI.Page.ProcessRequest() +119 ?? System.Web.UI.Page.ProcessRequest(HttpContext context) +167 ?? ASP.pages_pur_common_pur_material_query_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3a66716a\f24c2056\App_Web_0jitdpta.3.cs:0 ?? System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +597 ?? System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +266 |
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號(hào)聯(lián)系: 360901061
您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對(duì)您有幫助就好】元
