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

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

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

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

源错误:


行 63:                 strCode
行 64:             };
行 65:             DAL.ExecSuccess(strSql, paras, names);
行 66:             #endregion
行 67: 

源文件: e:\wwwroot\sigmamed_net\cn\videos_view.aspx.cs    行: 65

堆栈跟踪:


[SqlException (0x80131904): 在将 nvarchar 值 '8ce98e7ada9b4428a57fdfd1991df05a' 转换成数据类型 int 时失败。]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +392
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +815
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4515
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6738737
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) +6741487
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +586
   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) +751
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +290
   Riwit.Web.DbSql.ExecSuccess(String strSql, Object[] paras, String[] names) +252
   cn_videos_view.BindDisplayList(String strCode) in e:\wwwroot\sigmamed_net\cn\videos_view.aspx.cs:65
   cn_videos_view.Page_Load(Object sender, EventArgs e) in e:\wwwroot\sigmamed_net\cn\videos_view.aspx.cs:34
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.34212