Server error in '/' application.
Violation of primary key constraint 'pk_teacher'. Cannot insert duplicate key in object 'dbo. Teacher'.
The statement has been terminated.
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: violation of primary key constraint 'pk_teacher'. Cannot insert duplicate key in object 'dbo. Teacher'.
The statement has been terminated.
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 (0x[protected]: violation of primary key constraint 'pk_teacher'. Cannot insert duplicate key in object 'dbo. Teacher'.
The statement has been terminated.]
Dbaccess. Db. Executesql (String sql) in c:nios_deleddbaccessdb. Cs:106
Nios. Deled. Teacher. Regform. Submit_clicked (Object sender, eventargs e) in c:nios_delednios_deledteacherregform. Aspx. Cs:558
System. Web. Ui. Webcontrols. Button. Raisepostbackevent (String eventargument) +155
System. Web. Ui. Page. Processrequestmain (Boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint) +3804 Was this information helpful? |
Post your Comment