Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryThe INSERT statement conflicted with the FOREIGN KEY constraintThe INSERT statement conflicted with the FOREIGN KEY constraint
Previous
 
Next
New Post
3/7/2006 1:09 PM
 
I received an sql error when applying roles to the Gallery module.

Environment:  VWD, Sql 2005 Express, Win 2K
(plus AngelOnlines modification)

Action:

1) Gallery Page > Configuration > +Feature Settings > Download Roles > Add/Remove iicon

This opens the "Gallery Data Lookup -- Web Page Dialog" window

Put anything or nothing in the Find text field > Press Go

The following error appears

AssemblyVersion: 04.00.02
Method: System.Data.SqlClient.SqlConnection.OnError
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: WannaSki
UserID: 1
UserName: host
ActiveTabID: 55
ActiveTabName: Gallery
AbsoluteURL: /WannaSki/DesktopModules/Gallery/Popup/popupdata.aspx
AbsoluteURLReferrer: http://localhost:4352/WannaSki/DesktopModules/Gallery/Popup/PopupSelectMulti.aspx?datasource=gallery&objectclasses=102&tabid=55&mid=0
ExceptionGUID: cde80a5b-17c8-4112-b395-553704600476
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Unhandled Error:
Message: System.Exception: Unhandled Error: ---> System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_ModuleSettings_Modules". The conflict occurred in database "WannaSki", table "dbo.Modules", column 'ModuleID'. The statement has been terminated. 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(TdsParserStateObject stateObj) 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 Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Data.SqlDataProvider.AddModuleSetting(Int32 ModuleId, String SettingName, String SettingValue) at DotNetNuke.Entities.Modules.ModuleController.UpdateModuleSetting(Int32 ModuleId, String SettingName, String SettingValue) at DotNetNuke.Modules.Gallery.GalleryPreConfig.PreConfig(Int32 ModuleId, Int32 PortalId, Int32 UserId) at DotNetNuke.Modules.Gallery.Config..ctor(Int32 ModuleID) at DotNetNuke.Modules.Gallery.Config.GetGalleryConfig(Int32 ModuleID) at DotNetNuke.Modules.Gallery.PopupControls.PopupGalleryData..ctor(PopupData Popup) at DotNetNuke.Modules.Gallery.PopupControls.PopupData.CreateObject() at DotNetNuke.Modules.Gallery.PopupControls.PopupControl.CreateChildControls() at DotNetNuke.Modules.Gallery.PopupControls.PopupData.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.Modules.Gallery.PopupControls.PopupControl.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.desktopmodules_gallery_popup_popupdata_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: COTTER-4B
 
New Post
3/8/2006 4:50 PM
 
When I said "The following error appears" I should have said it is the error in the Log. The message on the web page is a far more abbreviated version of the same.

Sorry to be misleading.
 
New Post
5/1/2006 2:36 PM
 
Has this issue been addressed? Is there a work around?
 
New Post
7/2/2006 7:18 PM
 
I'm getting the same error on a new 4.3.1 install.  Anyone seen the fix yet - searching on this error gives me many pages unrealted (selected gallery project only but still get everything). 
 
New Post
7/15/2006 8:13 AM
 

I am getting the same error with a fresh new install on my prod box (DNN 4.3.1 and Gallery 3.0.12). Strange though, I did not get it on my dev box.

I installed them differently - here is what I did differently - DEV box was installed with every the modules at once.

My prod box was installed with the annoucement module first, then all other modules except the forum module, lastely the forum module was installed (this install was due to timeout issues with the forums module).

Also something you may want to look into: I am running the site on SSL and the IFRame with lookup() function for (single or multi) seems to search within http and https: Unfortunatly I cannot look at it, because I don't have the VB section of the files.

If anyone has found the answer please share. I am willing to do some digginf if I can have access to the files.

Thanks a  lot,

Igor Mathez

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryThe INSERT statement conflicted with the FOREIGN KEY constraintThe INSERT statement conflicted with the FOREIGN KEY constraint


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out