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

雷火官网下载-雷火app官网-雷火官网app下载

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

异常详细信息: System.Data.SqlClient.SqlException: 雷火官网下载-雷火app官网-雷火官网app下载

源错误:


行 16:         SqlCommand sc = conn.CreateCommand();
行 17:         sc.CommandText = "update video_detail set reads=reads+1 where id=" + spid;
行 18:         sc.ExecuteNonQuery();
行 19:         sc.CommandText = "select *,(select penname from users where tname=upuser) as pname from video_detail where id=" + spid;
行 20:         SqlDataReader sdr = sc.ExecuteReader();

源文件: e:\www\car\video_detail.aspx    行: 18

堆栈跟踪:


[SqlException (0x80131904): 雷火官网下载-雷火app官网-雷火官网app下载]
   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) +2843
   System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) +2886447
   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +470
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +182
   ASP.video_detail_aspx.Page_Load(Object sender, EventArgs e) in e:\www\car\video_detail.aspx:18
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   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.8806; ASP.NET 版本:2.0.50727.8762