Server Error in '/viWeb' Application.

The INSERT statement conflicted with the FOREIGN KEY constraint "FK_viConfiguration_gebruikers". The conflict occurred in database "GRIMBERGEN", table "dbo.gebruikers", column 'p_gebruiker'.
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 INSERT statement conflicted with the FOREIGN KEY constraint "FK_viConfiguration_gebruikers". The conflict occurred in database "GRIMBERGEN", table "dbo.gebruikers", column 'p_gebruiker'.
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 (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_viConfiguration_gebruikers". The conflict occurred in database "GRIMBERGEN", table "dbo.gebruikers", column 'p_gebruiker'.
The statement has been terminated.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +277
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +765
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4616
   System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +88
   System.Data.SqlClient.SqlDataReader.get_MetaData() +103
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) +621
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) +3382
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +707
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +83
   System.Data.SqlClient.SqlCommand.ExecuteScalar() +371
   informat.IBFFramework.IBFDatabaseTransaction.ExecuteInsertSql(IBFSQLInsertStatement sql, List`1 parameterList) in D:\a\1\s\informat.IBFFramework\IBFDatabaseTransaction.vb:127
   informat.IBFFramework.IBFAbstractTransaction.ExecuteInsertSql(IBFSQLInsertStatement query) in D:\a\1\s\informat.IBFFramework\IBFAbstractTransaction.vb:390
   vi.viKernel.ViCreateConfiguration.ExecuteTransaction() in D:\a\1\s\vi.viKernel\transactions\ViCreateConfiguration.vb:27
   informat.IBFFramework.IBFAbstractTransaction.PrimExecute() in D:\a\1\s\informat.IBFFramework\IBFAbstractTransaction.vb:274
   informat.IBFFramework.IBFAbstractDataManager.ExecuteTransactionAbstractTransaction(IBFAbstractTransaction transaction) in D:\a\1\s\informat.IBFFramework\IBFAbstractDataManager.vb:216
   informat.IBFFramework.IBFAbstractDataManager.executeTransaction(IBFAbstractTransaction transaction) in D:\a\1\s\informat.IBFFramework\IBFAbstractDataManager.vb:110
   vi.viKernel.viConfiguration.PrimGetValue(Object[] args) in D:\a\1\s\vi.viKernel\businessobjects\viConfiguration.vb:525
   informat.common.tools.DoubleCache`3.GetOrAddValue(Tkey1 key1, Tkey2 key2, CalculateValue calculator, Object[] params) +235
   vi.viKernel.viConfiguration.GetValue(String category, String key, Int32 p_beheerder, Int32 p_schoolvest, Int32 p_objectref, Boolean doNotCreateDefaultValue) in D:\a\1\s\vi.viKernel\businessobjects\viConfiguration.vb:484
   vi.viKernel.viConfiguration.Schooljaar(Int32 p_beheerder) in D:\a\1\s\vi.viKernel\businessobjects\viConfiguration.vb:621
   viWeb.VoorinschrijvingCVO.fillLocatieTree() in D:\a\1\s\viWeb\publiek\cvo\Voorinschrijving.aspx.vb:83
   viWeb.VoorinschrijvingCVO.InitializePage() in D:\a\1\s\viWeb\publiek\cvo\Voorinschrijving.aspx.vb:19
   System.Web.UI.Control.OnInit(EventArgs e) +99
   System.Web.UI.Page.OnInit(EventArgs e) +16
   System.Web.UI.Control.InitRecursive(Control namingContainer) +454
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1719


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0