账号通
    

账号  

密码  

2634

查看

2

回复
主题:应用程序中的服务器错误。不能将值 NULL 插入列 ID [收藏主题]  
cdlijie1987 当前离线

61

主题

20

广播

3

粉丝
添加关注
级别:学前班

用户积分:669 分
登录次数:182 次
注册时间:2009/7/6
最后登录:2016/9/4
cdlijie1987 发表于:2013/7/8 8:42:20   | 只看该作者 查看该作者主题 楼主 
“/”应用程序中的服务器错误。
不能将值 NULL 插入列 'ID',表 'zzkeji.zzkeji.KS_Log';列不允许有空值。INSERT 失败。
语句已终止。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.SqlClient.SqlException: 不能将值 NULL 插入列 'ID',表 'zzkeji.zzkeji.KS_Log';列不允许有空值。INSERT 失败。
语句已终止。

源错误:

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

堆栈跟踪:

 [SqlException (0x80131904): 不能将值 NULL 插入列 'ID',表 'zzkeji.zzkeji.KS_Log';列不允许有空值。INSERT 失败。语句已终止。]   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1951482   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4849035   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +204   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +175   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +137   Kesion.DataBase.DBHelper.ExecuteNonQuery(DbConnection connection, CommandType commandType, String commandText, DbParameter[] commandParameters) +78   Kesion.DataBase.DBHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, DbParameter[] commandParameters) +104   Kesion.DataBase.DBHelper.ExecuteNonQuery(CommandType commandType, String commandText, DbParameter[] commandParameters) +27   Kesion.SqlDAL.AdminManage.InsertLog(String username, Int32 resulttf, String scriptname, String Description) +396   Kesion.BLL.AdminManage.InsertLog(String username, Int32 resulttf, String scriptname, String Description) +25   Kesion.NET.WebSite.Admin.L.ImageButton2_Click(Object sender, ImageClickEventArgs e) +1671   System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118   System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


版本信息: Microsoft .NET Framework 版本:2.0.50727.4984; ASP.NET 版本:2.0.50727.4971
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
hgl1312 当前离线

120

主题

18

广播

1

粉丝
添加关注
级别:一年级

用户积分:444 分
登录次数:69 次
注册时间:2011/6/8
最后登录:2023/7/5
hgl1312 发表于:2013/7/8 12:46:14   | 只看该作者 查看该作者主题 沙发 
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
科汛官方 当前离线

47268

主题

145

广播

405

粉丝
添加关注
级别:管理员

用户积分:101604 分
登录次数:7935 次
注册时间:2006/12/7
最后登录:2023/12/14
科汛官方 发表于:2013/7/8 14:30:02   | 只看该作者 查看该作者主题 藤椅 
科汛智能建站系统
进入数据库,将表KS_Log的ID字段设置为自动增长
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.10156秒 powered by KesionCMS 9.0