Server Error in '/' Application.
--------------------------------------------------------------------------------第 1 行: 'System' 附近有语法错误。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 第 1 行: 'System' 附近有语法错误。Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[SqlException (0x80131904): 第 1 行: 'System' 附近有语法错误。]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857466
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735078
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) +192
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +380
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +135
clsPublic.AddErrorMessage(String strMessage, String strSource, String strTargetSiteName) +374
Info.Page_Load(Object sender, EventArgs e) +4771
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
--------------------------------------------------------------------------------第 1 行: 'System' 附近有语法错误。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 第 1 行: 'System' 附近有语法错误。Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[SqlException (0x80131904): 第 1 行: 'System' 附近有语法错误。]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857466
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735078
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) +192
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +380
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +135
clsPublic.AddErrorMessage(String strMessage, String strSource, String strTargetSiteName) +374
Info.Page_Load(Object sender, EventArgs e) +4771
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
解决方案 »
- 如何运用:同一命名空间的内容可以分布在不同的文件中?
- 如果一个页面需要两个提交action怎么处理???
- 以前做的一个功能网站根据关键字查询网址排名的。
- 急!!!如何显示被选中新闻详细内容
- |zyciis| 要生成一个临时文件给Ajax调用,但服务器不给创建文件的权限,怎么办 谢谢
- 关于水晶报表的问题,我什么都不懂,希望大家帮帮我哈 谢谢~!
- 为什么我的treeview控件无法正确显示,不是报错,而是只显示节点文本
- 2005和2003共存的问题
- 真是奇对,显示freetextbox的问题,用datagrid就没问题,用gridview就不行
- Table表格对角线的上下两边填文本怎么实现
- 关于删除数据过程中的一个问题
- DataGrid綁定值的讀取.
如果不是请去掉'" + System.DateTime.Now.ToString() + "'中的''
string strSQL = "Insert into tb_Error(fdErrTime,fdErrPage,fdErrMessage,fdErrSource,fdErrTagName) values (" + System.DateTime.Now.ToString() + ",'" + strErrPage + "','" + strMessage + "','" + strSource + "','" + strTargetSiteName + "')";
string strSQL = "Insert into tb_Error(fdErrTime,fdErrPage,fdErrMessage,fdErrSource,fdErrTagName) values (getdate(),'" + strErrPage + "','" + strMessage + "','" + strSource + "','" + strTargetSiteName + "')";