Forum Error

Exception of type 'System.Web.HttpUnhandledException' was thrown.

System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_yaf_Active'. Cannot insert duplicate key in object 'dbo.yaf_Active'. The duplicate key value is (qotklc4hmpfbrzqu3j3kaxgk, 1).
The statement has been terminated.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at 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)
   at 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)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteScalar()
   at ServiceStack.OrmLite.OrmLiteCommand.ExecuteScalar() in D:\GitHub\JustYouCommunity\ServiceStack\ServiceStack.OrmLite\OrmLiteCommand.cs:line 123
   at ServiceStack.OrmLite.OrmLiteResultsFilterExtensions.ExecLongScalar(IDbCommand dbCmd, String sql) in D:\GitHub\JustYouCommunity\ServiceStack\ServiceStack.OrmLite\OrmLiteResultsFilterExtensions.cs:line 333
   at ServiceStack.OrmLite.OrmLiteWriteCommandExtensions.InsertInternal[T](IOrmLiteDialectProvider dialectProvider, IDbCommand dbCmd, Object obj, Action`1 commandFilter, Boolean selectIdentity) in D:\GitHub\JustYouCommunity\ServiceStack\ServiceStack.OrmLite\OrmLiteWriteCommandExtensions.cs:line 1194
   at ServiceStack.OrmLite.OrmLiteWriteCommandExtensions.Insert[T](IDbCommand dbCmd, T obj, Action`1 commandFilter, Boolean selectIdentity, Boolean enableIdentityInsert) in D:\GitHub\JustYouCommunity\ServiceStack\ServiceStack.OrmLite\OrmLiteWriteCommandExtensions.cs:line 1072
   at ServiceStack.OrmLite.OrmLiteWriteApi.<>c__DisplayClass5_0`1.<Insert>b__0(IDbCommand dbCmd) in D:\GitHub\JustYouCommunity\ServiceStack\ServiceStack.OrmLite\OrmLiteWriteApi.cs:line 101
   at ServiceStack.OrmLite.OrmLiteExecFilter.Exec[T](IDbConnection dbConn, Func`2 filter) in D:\GitHub\JustYouCommunity\ServiceStack\ServiceStack.OrmLite\OrmLiteExecFilter.cs:line 174
   at ServiceStack.OrmLite.OrmLiteReadExpressionsApi.Exec[T](IDbConnection dbConn, Func`2 filter) in D:\GitHub\JustYouCommunity\ServiceStack\ServiceStack.OrmLite\OrmLiteReadExpressionsApi.cs:line 33
   at ServiceStack.OrmLite.OrmLiteWriteApi.Insert[T](IDbConnection dbConn, T obj, Boolean selectIdentity, Boolean enableIdentityInsert) in D:\GitHub\JustYouCommunity\ServiceStack\ServiceStack.OrmLite\OrmLiteWriteApi.cs:line 101
   at YAF.Core.Extensions.IRepositoryExtensions.<>c__DisplayClass5_0`1.<Insert>b__0(IDbCommand db) in D:\GitHub\JustYouCommunity\YAF.Core\Extensions\IRepositoryExtensions.cs:line 197
   at YAF.Core.Data.DbAccessBase.Execute[T](Func`2 execFunc, IDbCommand cmd, IDbTransaction dbTransaction) in D:\GitHub\JustYouCommunity\YAF.Core\Data\DbAccessBase.cs:line 99
   at YAF.Core.Extensions.IRepositoryExtensions.Insert[T](IRepository`1 repository, T entity, Boolean selectIdentity) in D:\GitHub\JustYouCommunity\YAF.Core\Extensions\IRepositoryExtensions.cs:line 197
   at YAF.Core.Services.DataBroker.GetPageLoad(String sessionId, Int32 boardId, String userKey, String ip, String location, String forumPage, String browser, String platform, Nullable`1 categoryId, Nullable`1 forumId, Nullable`1 topicId, Nullable`1 messageId, Boolean isCrawler, Boolean doNotTrack) in D:\GitHub\JustYouCommunity\YAF.Core\Services\DataBroker.cs:line 504
   at YAF.Core.Context.LoadPageFromDatabase.Handle(InitPageLoadEvent event) in D:\GitHub\JustYouCommunity\YAF.Core\Context\LoadPageFromDatabase.cs:line 109
   at YAF.Core.Events.ServiceLocatorEventRaiser.<>c__DisplayClass6_0`1.<Raise>b__0(IHandleEvent`1 x) in D:\GitHub\JustYouCommunity\YAF.Core\Events\ServiceLocatorEventRaiser.cs:line 69
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at YAF.Types.Extensions.EnumerableExtensions.ForEach[T](IEnumerable`1 list, Action`1 action) in D:\GitHub\JustYouCommunity\YAF.Types\Extensions\EnumerableExtensions.cs:line 46
   at YAF.Core.Events.ServiceLocatorEventRaiser.Raise[T](T eventObject) in D:\GitHub\JustYouCommunity\YAF.Core\Events\ServiceLocatorEventRaiser.cs:line 69
   at YAF.Core.Context.BoardContext.InitUserAndPage() in D:\GitHub\JustYouCommunity\YAF.Core\Context\BoardContext.cs:line 213
   at YAF.Core.Context.UserPageBase.get_PageData() in D:\GitHub\JustYouCommunity\YAF.Core\Context\UserPageBase.cs:line 171
   at YAF.Core.Context.UserPageBase.get_IsGuest() in D:\GitHub\JustYouCommunity\YAF.Core\Context\UserPageBase.cs:line 122
   at YAF.Web.Controls.Forum.OnLoad(EventArgs e) in D:\GitHub\JustYouCommunity\YAF.Web\Controls\Forum.cs:line 240
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.<LoadRecursiveAsync>d__246.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Util.WithinCancellableCallbackTaskAwaitable.WithinCancellableCallbackTaskAwaiter.GetResult()
   at System.Web.UI.Page.<ProcessRequestMainAsync>d__523.MoveNext()
ClientConnectionId:c421644b-49c9-460e-8334-3f12c15c61f8
Error Number:2627,State:1,Class:14
ClientConnectionId before routing:dbbaa33f-6fd6-4811-b555-af608e85ff65
Routing Destination:a7d4a2536d4f.tr13766.uksouth1-a.worker.database.windows.net,11025
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.<ProcessRequestMainAsync>d__523.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Util.WithinCancellableCallbackTaskAwaitable.WithinCancellableCallbackTaskAwaiter.GetResult()
   at System.Web.UI.Page.<ProcessRequestAsync>d__515.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.UI.Page.<ProcessRequestAsync>d__554.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar)
   at System.Web.UI.Page.AsyncPageEndProcessRequest(IAsyncResult result)
   at ASP.default_aspx.EndProcessRequest(IAsyncResult ar)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0()
   at System.Web.HttpApplication.StepInvoker.Invoke(Action executionStep)
   at System.Web.HttpApplication.StepInvoker.<>c__DisplayClass4_0.<Invoke>b__0()
   at Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.OnExecuteRequestStep(HttpContextBase context, Action step)
   at System.Web.HttpApplication.<>c__DisplayClass284_0.<OnExecuteRequestStep>b__0(Action nextStepAction)
   at System.Web.HttpApplication.StepInvoker.Invoke(Action executionStep)
   at System.Web.HttpApplication.StepInvoker.<>c__DisplayClass4_0.<Invoke>b__0()
   at Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule.OnExecuteRequestStep(HttpContextBase context, Action step)
   at System.Web.HttpApplication.<>c__DisplayClass284_0.<OnExecuteRequestStep>b__0(Action nextStepAction)
   at System.Web.HttpApplication.StepInvoker.Invoke(Action executionStep)
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Please contact the administrator if this message persists.

Try Again