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
|
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.
|