Sorry, we cannot tell you what may be wrong right away. There must be a eXpressAppFramework.log file created in the same folder where your EXE is located. Please run the application, recreate the issue, close the application and post the log file here for further investigation.
The resolution is at the database level. In MS SQL 2005 / 2008 do the
First - Using SQL Manager or another tool; right click on the TABLE which
is giving the error. In the table properties there is an element called
IDENTITY. Set this to the COLUMN fieldname that you want to auto
Second - Execute the following SQL statement on your table:
Set Identity_Insert db.TableName ON;
Replace db.TableName with your tablename.
That's it. You do not have to select, show, update, or do anything to that
column going forward. It will automatically update / increment whenever a
new row is added. And the error described will go away.