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

'=' 附近有语法错误。

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

异常详细信息: System.Data.SqlClient.SqlException: '=' 附近有语法错误。

源错误:

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

堆栈跟踪:


[SqlException (0x80131904): '=' 附近有语法错误。]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +3306108
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +736
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4061
   System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +90
   System.Data.SqlClient.SqlDataReader.get_MetaData() +99
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) +604
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) +3303
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +667
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +83
   System.Data.SqlClient.SqlCommand.ExecuteScalar() +359
   JieJu.Cn.SQLServerDAL.SqlHelper.ExecuteScalar(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) in D:\work\dev-project\jieju\jieju\trunk\jieju\Model\SQLServerDAL\SqlHelper.cs:719
   JieJu.Cn.SQLServerDAL.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) in D:\work\dev-project\jieju\jieju\trunk\jieju\Model\SQLServerDAL\SqlHelper.cs:674
   JieJu.Cn.SQLServerDAL.SqlHelper.ExecuteScalar(String connectionString, String spName, Object[] parameterValues) in D:\work\dev-project\jieju\jieju\trunk\jieju\Model\SQLServerDAL\SqlHelper.cs:693
   JieJu.Cn.SQLServerDAL.DbHelperSQL.GetValue(String fieldName, String tbName, String condition) in D:\work\dev-project\jieju\jieju\trunk\jieju\Model\SQLServerDAL\DbHelperSQL.cs:224
   JieJu.Cn.SQLServerDAL.DalBase.GetValue(String fieldName, String condition) in D:\work\dev-project\jieju\jieju\trunk\jieju\Model\SQLServerDAL\DalBase.cs:159
   JieJu.Cn.BLL.BllBase.GetValue(String fieldName, String condition) in D:\work\dev-project\jieju\jieju\trunk\jieju\Model\Bll\BllBase.cs:136
   Ftcb.Jieju.Picture.list.DetalList.Page_Load(Object sender, EventArgs e) +3113
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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