Welcome Guest Search | Active Topics | Members

Delete Error Options
CharlieK
Posted: Wednesday, November 07, 2007 6:17:20 PM
Rank: Member
Groups: Member

Joined: 8/23/2007
Posts: 4
Points: 0
I was testing the Media Gallery and tried to delete a photo, I got the following error:

Code:
Server Error in '/MediaGallery' Application.
--------------------------------------------------------------------------------

The INSERT statement conflicted with the FOREIGN KEY constraint "FK_MG_Log_MG_File". The conflict occurred in database "MediaGallery", table "dbo.MG_File", column 'ID'. 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_MG_Log_MG_File". The conflict occurred in database "MediaGallery", table "dbo.MG_File", column 'ID'. 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: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_MG_Log_MG_File". The conflict occurred in database "MediaGallery", table "dbo.MG_File", column 'ID'.
The statement has been terminated.]
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +742
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +195
   Aurigma.MediaGallery.Data.SqlDataProvider.AddRecord(Int32 intFileID, Int32 intUserID, OperationType Operation) +349
   Aurigma.MediaGallery.Data.Utility.SaveVisit(Int32 intFileID) +171
   Aurigma.MediaGallery.Controls.Viewer.Page_Load(Object sender, EventArgs e) +108
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Page.ProcessRequestMain() +750




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407


Any Ideas what caused this?

Charlie
Dmitry
Posted: Monday, November 12, 2007 6:47:51 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 586
Points: 588
Hello,

Thanks for your bug report. We will fix it in future releases.

Sincerely yours,
Dmitry Sevostyanov.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.