此操作对该事务的状态无效。
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
此操作对该事务的状态无效。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Transactions.TransactionException: 此操作对该事务的状态无效。
源错误:
行 33: {
行 34: zp_ResumeBiz resbiz = new zp_ResumeBiz();
行 35: DataSet ds = resbiz.GetResumeTop20();
行 36: string s = "";
行 37: for (int i = 0; i < ds.Tables["zp_Resume"].Rows.Count; i++)
源文件: d:\wwwroot\haojob126_l8kq5a\index.aspx.cs 行: 35
堆栈跟踪:
[TransactionException: 此操作对该事务的状态无效。]
System.Transactions.TransactionState.EnlistPromotableSinglePhase(InternalTransaction tx, IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Transaction atomicTransaction) +44
System.Transactions.Transaction.EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification promotableSinglePhaseNotification) +150
System.Data.SqlClient.SqlInternalConnection.EnlistNonNull(Transaction tx) +159
System.Data.SqlClient.SqlInternalConnection.Enlist(Transaction tx) +4846418
System.Data.SqlClient.SqlInternalConnectionTds.Activate(Transaction transaction) +4846477
System.Data.ProviderBase.DbConnectionInternal.ActivateConnection(Transaction transaction) +33
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +1286
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
System.Data.SqlClient.SqlConnection.Open() +122
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +31
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +112
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +287
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +92
zp_Dao.zp_ResumeDao.GetResumeTop20() in E:\zp\OkBole\zp_Dao\Personal\zp_ResumeDao.cs:392
zp_Biz.zp_ResumeBiz.GetResumeTop20() in E:\zp\OkBole\zp_Biz\Personal\zp_ResumeBiz.cs:180
Front_index.GetResumeTop20() in d:\wwwroot\haojob126_l8kq5a\index.aspx.cs:35
Front_index.Page_Load(Object sender, EventArgs e) in d:\wwwroot\haojob126_l8kq5a\index.aspx.cs:17
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627