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

在将 varchar 值 '[X]Microsoft SQL Server 2008 (RTM[XX]' 转换成数据类型 int 时失败。
select count(a.commentId) as Total from [3322_1].[dbo].[2006_49887_comment] a where a.flag=1 and a.parentid=4211111111111111111111111111 UNION SELECT char(91)+char(88)+char(93)+(/**/cAsT(@@version as char))+char(91)+char(88)+char(88)+char(93)

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

异常详细信息: System.Data.SqlClient.SqlException: 在将 varchar 值 '[X]Microsoft SQL Server 2008 (RTM[XX]' 转换成数据类型 int 时失败。
select count(a.commentId) as Total from [3322_1].[dbo].[2006_49887_comment] a where a.flag=1 and a.parentid=4211111111111111111111111111 UNION SELECT char(91)+char(88)+char(93)+(/**/cAsT(@@version as char))+char(91)+char(88)+char(88)+char(93)

源错误:

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

堆栈跟踪:


[SqlException (0x80131904): 在将 varchar 值 '[X]Microsoft SQL Server 2008 (RTM[XX]' 转换成数据类型 int 时失败。
select count(a.commentId) as Total from [3322_1].[dbo].[2006_49887_comment] a where a.flag=1 and a.parentid=4211111111111111111111111111 UNION SELECT char(91)+char(88)+char(93)+(/**/cAsT(@@version as char))+char(91)+char(88)+char(88)+char(93)]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +212
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2811
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +2496220
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +2498289
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +424
   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +522
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +182
   Xinhua.DAO.DefaultProvider.RunSql() +102
   _3322.Util.Cls_SiteBase.dbRecord(String tblName, String strGetFields, String strColumn, String fldName, Int32 PageSize, Int32 PageIndex, SByte doCount, SByte OrderType, String strWhere) in G:\WebSites\下一站\源代码管理\Util\Cls_SiteBase.cs:1094
   _3322.Util.Cls_SiteBase.ShowRecord(String tblName, String strGetFields, String strColumn, String fldName, Int32 PageSize, Int32 PageIndex, SByte doCount, SByte OrderType, String strWhere) in G:\WebSites\下一站\源代码管理\Util\Cls_SiteBase.cs:1070
   _3322.Util.Cls_SiteBase.Column() in G:\WebSites\下一站\源代码管理\Util\Cls_SiteBase.cs:960
   _3322.Util.Cls_SiteBase.ParseTag(String strTag) in G:\WebSites\下一站\源代码管理\Util\Cls_SiteBase.cs:1246
   _3322.Util.Cls_SiteBase.ProcessCustomTags(String strV) in G:\WebSites\下一站\源代码管理\Util\Cls_SiteBase.cs:1195
   _3322.ListComment.Page_Load(Object sender, EventArgs e) in G:\WebSites\下一站\源代码管理\ListComment.aspx.cs:67
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


版本信息: Microsoft .NET Framework 版本:2.0.50727.4253; ASP.NET 版本:2.0.50727.4257