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 (gcpwfdwjx03h03coxft521ml, 1).
The statement has been terminated.
   at System.Data.SqlClient.SqlConnection.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.OrmLiteResultsFilterExtensions.ExecLongScalar(IDbCommand dbCmd, String sql) in C:\Websites\YAFNET-YAFNET-v3.1.2-0-gbb50d24 - OAICD Forum Project\YAFNET-YAFNET-bb50d24\yafsrc\ServiceStack\ServiceStack.OrmLite\OrmLiteResultsFilterExtensions.cs:line 328
   at ServiceStack.OrmLite.OrmLiteWriteApi.<>c__DisplayClass5_0`1.<Insert>b__0(IDbCommand dbCmd) in C:\Websites\YAFNET-YAFNET-v3.1.2-0-gbb50d24 - OAICD Forum Project\YAFNET-YAFNET-bb50d24\yafsrc\ServiceStack\ServiceStack.OrmLite\OrmLiteWriteApi.cs:line 101
   at ServiceStack.OrmLite.OrmLiteExecFilter.Exec[T](IDbConnection dbConn, Func`2 filter) in C:\Websites\YAFNET-YAFNET-v3.1.2-0-gbb50d24 - OAICD Forum Project\YAFNET-YAFNET-bb50d24\yafsrc\ServiceStack\ServiceStack.OrmLite\OrmLiteExecFilter.cs:line 174
   at YAF.Core.Extensions.IRepositoryExtensions.<>c__DisplayClass5_0`1.<Insert>b__0(IDbCommand db) in C:\Websites\YAFNET-YAFNET-v3.1.2-0-gbb50d24 - OAICD Forum Project\YAFNET-YAFNET-bb50d24\yafsrc\YAF.Core\Extensions\IRepositoryExtensions.cs:line 208
   at YAF.Core.Data.DbAccessBase.Execute[T](Func`2 execFunc, IDbCommand cmd, IDbTransaction dbTransaction) in C:\Websites\YAFNET-YAFNET-v3.1.2-0-gbb50d24 - OAICD Forum Project\YAFNET-YAFNET-bb50d24\yafsrc\YAF.Core\Data\DbAccessBase.cs:line 119
   at YAF.Core.Extensions.IRepositoryExtensions.Insert[T](IRepository`1 repository, T entity, Boolean selectIdentity, IDbTransaction transaction) in C:\Websites\YAFNET-YAFNET-v3.1.2-0-gbb50d24 - OAICD Forum Project\YAFNET-YAFNET-bb50d24\yafsrc\YAF.Core\Extensions\IRepositoryExtensions.cs:line 208
   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 C:\Websites\YAFNET-YAFNET-v3.1.2-0-gbb50d24 - OAICD Forum Project\YAFNET-YAFNET-bb50d24\yafsrc\YAF.Core\Services\DataBroker.cs:line 503
   at YAF.Core.Context.LoadPageFromDatabase.Handle(InitPageLoadEvent event) in C:\Websites\YAFNET-YAFNET-v3.1.2-0-gbb50d24 - OAICD Forum Project\YAFNET-YAFNET-bb50d24\yafsrc\YAF.Core\Context\LoadPageFromDatabase.cs:line 130
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at YAF.Core.Context.BoardContext.InitUserAndPage() in C:\Websites\YAFNET-YAFNET-v3.1.2-0-gbb50d24 - OAICD Forum Project\YAFNET-YAFNET-bb50d24\yafsrc\YAF.Core\Context\BoardContext.cs:line 277
   at YAF.Core.Context.UserPageBase.get_PageData() in C:\Websites\YAFNET-YAFNET-v3.1.2-0-gbb50d24 - OAICD Forum Project\YAFNET-YAFNET-bb50d24\yafsrc\YAF.Core\Context\UserPageBase.cs:line 184
   at YAF.Core.Context.UserPageBase.get_IsGuest() in C:\Websites\YAFNET-YAFNET-v3.1.2-0-gbb50d24 - OAICD Forum Project\YAFNET-YAFNET-bb50d24\yafsrc\YAF.Core\Context\UserPageBase.cs:line 135
   at YAF.Web.Controls.Forum.OnLoad(EventArgs e) in C:\Websites\YAFNET-YAFNET-v3.1.2-0-gbb50d24 - OAICD Forum Project\YAFNET-YAFNET-bb50d24\yafsrc\YAF.Web\Controls\Forum.cs:line 299
   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.ExceptionServices.ExceptionDispatchInfo.Throw()
   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:e71a2643-a2dc-457b-9ffb-07a94f0355d3
Error Number:2627,State:1,Class:14
   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.ExceptionServices.ExceptionDispatchInfo.Throw()
   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.ExceptionServices.ExceptionDispatchInfo.Throw()
   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.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar)
   at ASP.default_aspx.EndProcessRequest(IAsyncResult ar) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\membership\68babd8d\e67049d4\App_Web_fmr3jhhf.0.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   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