在删除帖子的时候发生以下错误:
Server Error in '/bbs2031' Application.
不允许从数据类型 datetime 到数据类型 int 的隐性转换(表 'BBS2031.dbo.pz_Forum_ReplyRecycle',列 'TableNumber')。请使用 CONVERT 函数来运行此查询。
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.Data.SqlClient.SqlException: 不允许从数据类型 datetime 到数据类型 int 的隐性转换(表 'BBS2031.dbo.pz_Forum_ReplyRecycle',列 'TableNumber')。请使用 CONVERT 函数来运行此查询。
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[SqlException (0x80131904): 不允许从数据类型 datetime 到数据类型 int 的隐性转换(表 'BBS2031.dbo.pz_Forum_ReplyRecycle',列 'TableNumber')。请使用 CONVERT 函数来运行此查询。]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857434
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735046
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) +192
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +380
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +135
DXBBS.DataProviders.DataProvider.ExecuteNonQuery(String CommandTxt) +59
DXBBS.DataProviders.ForumProvider.DeletePost(PostDeleteInfo pd, DataProvider dp) +3146
DXBBS.Business.Forum.DeletePost(PostDeleteInfo pd, DataProvider dp) +5
DXBBS.Controls.PostEdit.DeleteButton_Click(Object sender, EventArgs e) +906
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
|
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42