midwestSS
2009-10-12T21:54:12Z
in 1.9.3,
if you tried to ban the same IP twice.. you'd get a retry error
in the latest beta..

Server Error in '/' Application.
--------------------------------------------------------------------------------

Violation of UNIQUE KEY constraint 'IX_yaf_BannedIP'. Cannot insert duplicate key in object 'dbo.yaf_BannedIP'.
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: Violation of UNIQUE KEY constraint 'IX_yaf_BannedIP'. Cannot insert duplicate key in object 'dbo.yaf_BannedIP'.
The statement has been terminated.

Source Error: 

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.  

Stack Trace: 


[SqlException (0x80131904): Violation of UNIQUE KEY constraint 'IX_yaf_BannedIP'. Cannot insert duplicate key in object 'dbo.yaf_BannedIP'.
The statement has been terminated.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1950890
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846875
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +204
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +175
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +137
   YAF.Classes.Data.YafDBAccess.ExecuteNonQuery(SqlCommand cmd, Boolean transaction) +138
   YAF.Classes.Data.DB.bannedip_save(Object ID, Object boardID, Object Mask) +160
   YAF.Pages.Admin.bannedip_edit.Save_Click(Object sender, EventArgs e) +576
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 
Sponsor
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2009-10-13T00:27:56Z
Admin has a ton of data validation issues. Anyone is welcome to work on them...

midwestSS
2009-10-13T08:59:46Z
ok. i wasnt trying to be a whiner.. just offering up the issues that I find.. tryin to help serve the community.
i thought maybe someone would see that and say hey.. you screwed up your install .. or something.

oh, FYI, I started looking around for some free .net controls or solutions to add on ,since im not really a programmer... so maybe i can contribute a bit more.
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2009-10-13T13:02:00Z
midwestSS wrote:

ok. i wasnt trying to be a whiner.. just offering up the issues that I find.. tryin to help serve the community.
i thought maybe someone would see that and say hey.. you screwed up your install .. or something.

oh, FYI, I started looking around for some free .net controls or solutions to add on ,since im not really a programmer... so maybe i can contribute a bit more.


No problem Michael. Just sayin' -- it needs a lot of work. 😢 🤬
Users browsing this topic

    About Us

    The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

    Powered by Resharper Donate with PayPal button

    Project Twitter Updates

    Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved