问题描述
任何人都可以帮助我,为什么我收到此错误?提前感谢..
当IDENTITY_INSERT设置为OFF时,无法在表'OS_Mailinglist1'中为identity列插入显式值。
描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详细信息:System.Data.SqlClient.SqlException:当IDENTITY_INSERT设置为OFF时,无法在表'OS_Mailinglist1'中为identity列插入显式值。
来源错误:
第310行:
第311行:
第312行:cmd.ExecuteNonQuery();
第313行:ClientScript.RegisterStartupScript(this.GetType(),alert,alert('Successsfully注册您的电子邮件ID和感兴趣的区域。');,true);
第314行:
can anyone help me why i am getting this error?thanks in advance..
Cannot insert explicit value for identity column in table 'OS_Mailinglist1' when IDENTITY_INSERT is set to OFF.
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: Cannot insert explicit value for identity column in table 'OS_Mailinglist1' when IDENTITY_INSERT is set to OFF.
Source Error:
Line 310:
Line 311:
Line 312: cmd.ExecuteNonQuery();
Line 313: ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Successsfully Registered your Email ID and Area of interest.');", true);
Line 314:
推荐答案
这篇关于当IDENTITY_INSERT设置为OFF时,无法在表'OS_Mailinglist1'中为标识列插入显式值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!