One error when i del a Category.
the report is:
Server Error in '/TimeTracker' Application.
--------------------------------------------------------------------------------
The DELETE statement conflicted with the REFERENCE constraint "FK_TimeTracker_TimeEntry_IssueTracker_ProjectCategories". The conflict occurred in database "C:\TIMETRACKER\APP_DATA\TIMETRACKER.MDF", table "dbo.aspnet_starterkits_TimeEntry", column 'CategoryId'.
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: The DELETE statement conflicted with the REFERENCE constraint "FK_TimeTracker_TimeEntry_IssueTracker_ProjectCategories". The conflict occurred in database "C:\TIMETRACKER\APP_DATA\TIMETRACKER.MDF", table "dbo.aspnet_starterkits_TimeEntry", column 'CategoryId'.
The statement has been terminated.
Source Error:
Line 636: sqlCmd.Connection = cn
Line 637: cn.Open()
Line 638: sqlCmd.ExecuteScalar()
Line 639:
Line 640: End Using
who can help me?Thanks very much!