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

在将 nvarchar 值 'bqpxb' 转换成数据类型 int 时失败。

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

异常详细信息: System.Data.SqlClient.SqlException: 在将 nvarchar 值 'bqpxb' 转换成数据类型 int 时失败。

源错误:

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

堆栈跟踪:


[SqlException (0x80131904): 在将 nvarchar 值 'bqpxb' 转换成数据类型 int 时失败。]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1960634
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4890859
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2412
   System.Data.SqlClient.SqlDataReader.HasMoreRows() +206
   System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) +185
   System.Data.SqlClient.SqlDataReader.Read() +9
   SqlServer2000.SqlSession.GetTable(String Sql, IQueryable QueryParam) +529

[SessionException: Get List errorselect top 1 news_title,news_content from dcms_news where news_state='1' and news_id = @news_id  order by news_addtime asc ]
   SqlServer2000.SqlSession.GetTable(String Sql, IQueryable QueryParam) +733
   Dcms.Controls.RenderApi.RenderRepTemp(Int32 layerI, DataQuery dq, Int32 TotalRecord, Int32 TotalPage) +468
   Dcms.Controls.RenderApi.RenderSelect() +625
   Dcms.Controls.Drepeater.Render(HtmlTextWriter output) +522
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


版本信息: Microsoft .NET Framework 版本:2.0.50727.8800; ASP.NET 版本:2.0.50727.8762