We are sorry, but Gallery Server Pro encountered an error. It has been logged and, if error reporting is enabled, an email describing the problem has been sent to the administrator.
Error: Violation of UNIQUE KEY constraint 'UC_gs_GallerySetting_FKGalleryId_SettingName'. Cannot insert duplicate key in object 'dbo.gs_GallerySetting'. The duplicate key value is (7, AutoSyncIntervalMinutes).
Error Summary
Timestamp
9/14/2011 12:49:25 PM
Exception Type
System.Data.SqlClient.SqlException
Message
Violation of UNIQUE KEY constraint 'UC_gs_GallerySetting_FKGalleryId_SettingName'. Cannot insert duplicate key in object 'dbo.gs_GallerySetting'. The duplicate key value is (7, AutoSyncIntervalMinutes).
Source
.Net SqlClient Data Provider
Target Site
Void OnError(System.Data.SqlClient.SqlException, Boolean)
Stack Trace
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at GalleryServerPro.Data.SqlServer.GalleryData.ConfigureGallery(Int32 galleryId)
at GalleryServerPro.Data.SqlServer.SqlDataProvider.Gallery_Configure(IGallery gallery)
at GalleryServerPro.Business.Gallery.Save()
at GalleryServerPro.Web.Pages.Admin.galleries.CreateGallery(String description)
at GalleryServerPro.Web.Pages.Admin.galleries.gvGalleries_RowCommand(Object sender, GridViewCommandEventArgs e)
at System.Web.UI.WebControls.GridView.OnRowCommand(GridViewCommandEventArgs e)
at System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup)
at System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Exception Data
HelpLink.ProdName: Microsoft SQL Server
HelpLink.ProdVer: 10.00.4064
HelpLink.EvtSrc: MSSQLServer
HelpLink.EvtID: 2627
HelpLink.BaseHelpUrl:
http://go.microsoft.com/fwlink
HelpLink.LinkId: 20476
Error Handling Exception: The function HandleGalleryException experienced the following error while trying to log an error: System.Xml.XmlException - Unexpected end of file while parsing Name has occurred. Line 80, position 12. Stack trace: at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Data.DataTextReader.Read()
at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
at System.Data.XmlDataLoader.LoadData(XmlReader reader)
at System.Data.DataTable.ReadXmlDiffgram(XmlReader reader)
at System.Data.DataTable.ReadXml(XmlReader reader, Boolean denyResolving)
at System.Data.DataTable.ReadXml(TextReader reader)
at GalleryServerPro.ErrorHandler.Error.Deserialize(String xmlToDeserialize)
at GalleryServerPro.ErrorHandler.Error.GetAppErrorsFromDataReader(IEnumerab le`1 appErrorDtos)
at GalleryServerPro.ErrorHandler.Error.GetAppErrors()
at GalleryServerPro.ErrorHandler.Error.ValidateLogSize(Int32 maxNumberErrorItems)
at GalleryServerPro.ErrorHandler.Error.Record(Exception ex, Int32 galleryId, IGallerySettingsCollection gallerySettingsCollection, IAppSetting appSettings)
at GalleryServerPro.Web.Controller.AppErrorController.LogError(Exception ex, Int32 galleryId)
at GalleryServerPro.Web.Controller.AppErrorController.HandleGalleryExceptio n(Exception ex, Int32 galleryId)