Skip to content

Instantly share code, notes, and snippets.

@whalec
Created November 2, 2011 00:30
Show Gist options
  • Save whalec/1332391 to your computer and use it in GitHub Desktop.
Save whalec/1332391 to your computer and use it in GitHub Desktop.
Stack trace of error
<html>
<head>
<title>The INSERT statement conflicted with the CHECK constraint &quot;CK_CandidateList_name&quot;. The conflict occurred in database &quot;LinkMe&quot;, table &quot;dbo.CandidateList&quot;.<br>The statement has been terminated.</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>The INSERT statement conflicted with the CHECK constraint &quot;CK_CandidateList_name&quot;. The conflict occurred in database &quot;LinkMe&quot;, table &quot;dbo.CandidateList&quot;.<br>The statement has been terminated.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>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.
<br><br>
<b> Exception Details: </b>System.Data.SqlClient.SqlException: The INSERT statement conflicted with the CHECK constraint &quot;CK_CandidateList_name&quot;. The conflict occurred in database &quot;LinkMe&quot;, table &quot;dbo.CandidateList&quot;.<br>The statement has been terminated.<br><br>
<b>Source Error:</b> <br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code>
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.</code>
</td>
</tr>
</table>
<br>
<b>Stack Trace:</b> <br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
[SqlException (0x80131904): The INSERT statement conflicted with the CHECK constraint &quot;CK_CandidateList_name&quot;. The conflict occurred in database &quot;LinkMe&quot;, table &quot;dbo.CandidateList&quot;.
The statement has been terminated.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +212
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2811
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +2476460
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +2478113
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +424
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +522
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +182
System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) +328
System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) +207
System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +576
System.Data.Linq.StandardChangeDirector.DynamicInsert(TrackedObject item) +95
System.Data.Linq.StandardChangeDirector.Insert(TrackedObject item) +220
System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) +342
System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) +659
LinkMe.Domain.Roles.Contenders.Data.ContendersRepository.LinkMe.Domain.Roles.Contenders.IContendersRepository.CreateContenderList(ContenderList list) +237
LinkMe.Domain.Roles.Contenders.Commands.ContenderListsCommand.LinkMe.Domain.Roles.Contenders.Commands.IContenderListsCommand.CreateContenderList(ContenderList contenderList) +73
LinkMe.Domain.Users.Employers.Candidates.Queries.CandidateFoldersQuery.CreateSpecialCandidateFolder(Guid employerId, FolderType folderType) +162
LinkMe.Domain.Users.Employers.Candidates.Queries.CandidateFoldersQuery.GetSpecialCandidateFolder(Guid employerId, FolderType folderType) +197
LinkMe.Domain.Users.Employers.Candidates.Queries.CandidateFoldersQuery.LinkMe.Domain.Users.Employers.Candidates.Queries.ICandidateFoldersQuery.GetMobileCandidateFolder(IEmployer employer) +77
LinkMe.Apps.Api.Areas.Employers.Controllers.Candidates.FoldersApiController.MobileCandidates(Pagination pagination) in c:\BuildAgent\work\dad082ef61ac54f2\Apps\Api\Areas\Employers\Controllers\Candidates\FoldersApiController.cs:40
lambda_method(ExecutionScope , ControllerBase , Object[] ) +69
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +236
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +31
System.Web.Mvc.&lt;&gt;c__DisplayClassd.&lt;InvokeActionMethodWithFilters&gt;b__a() +85
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +658147
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +288
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +658884
System.Web.Mvc.Controller.ExecuteCore() +125
System.Web.Mvc.&lt;&gt;c__DisplayClass8.&lt;BeginProcessRequest&gt;b__4() +48
System.Web.Mvc.Async.&lt;&gt;c__DisplayClass1.&lt;MakeVoidDelegate&gt;b__0() +21
System.Web.Mvc.Async.&lt;&gt;c__DisplayClass8`1.&lt;BeginSynchronous&gt;b__7(IAsyncResult _) +15
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +85
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +51
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +454
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +263
</pre></code>
</td>
</tr>
</table>
<br>
<hr width=100% size=1 color=silver>
<b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618
</font>
</body>
</html>
<!--
[SqlException]: The INSERT statement conflicted with the CHECK constraint &quot;CK_CandidateList_name&quot;. The conflict occurred in database &quot;LinkMe&quot;, table &quot;dbo.CandidateList&quot;.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
at System.Data.Linq.ChangeDirector.StandardChangeDirector.DynamicInsert(TrackedObject item)
at System.Data.Linq.ChangeDirector.StandardChangeDirector.Insert(TrackedObject item)
at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
at LinkMe.Domain.Roles.Contenders.Data.ContendersRepository.LinkMe.Domain.Roles.Contenders.IContendersRepository.CreateContenderList(ContenderList list)
at LinkMe.Domain.Roles.Contenders.Commands.ContenderListsCommand.LinkMe.Domain.Roles.Contenders.Commands.IContenderListsCommand.CreateContenderList(ContenderList contenderList)
at LinkMe.Domain.Users.Employers.Candidates.Queries.CandidateFoldersQuery.CreateSpecialCandidateFolder(Guid employerId, FolderType folderType)
at LinkMe.Domain.Users.Employers.Candidates.Queries.CandidateFoldersQuery.GetSpecialCandidateFolder(Guid employerId, FolderType folderType)
at LinkMe.Domain.Users.Employers.Candidates.Queries.CandidateFoldersQuery.LinkMe.Domain.Users.Employers.Candidates.Queries.ICandidateFoldersQuery.GetMobileCandidateFolder(IEmployer employer)
at LinkMe.Apps.Api.Areas.Employers.Controllers.Candidates.FoldersApiController.MobileCandidates(Pagination pagination) in c:\BuildAgent\work\dad082ef61ac54f2\Apps\Api\Areas\Employers\Controllers\Candidates\FoldersApiController.cs:line 40
at lambda_method(ExecutionScope , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
at System.Web.Mvc.Controller.ExecuteCore()
at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__4()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()
at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--><!--
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using &lt;customErrors mode="Off"/&gt;. Consider using &lt;customErrors mode="On"/&gt; or &lt;customErrors mode="RemoteOnly"/&gt; in production environments.-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment