YAFLogo

infinitep
  • infinitep
  • 72.8% (Friendly)
  • YAF Lover Topic Starter
15 years ago
When trying to install to an exsiting ASP.net site using the following web.config I get the following error on installing with full text search.

The INSERT statement conflicted with the FOREIGN KEY constraint 'FK_BBCode_Board'. The conflict occurred in database "Forum", table "dbo.yaf_Board", column 'BoardID'.




connectionStringName="ConnectionString"
applicationName="/"
type="System.Web.Security.SqlMembershipProvider" />
connectionStringName="yafnet"
applicationName="YetAnotherForum"
type="System.Web.Security.SqlMembershipProvider" />





connectionStringName="ConnectionString"
applicationName="/"
type="System.Web.Security.SqlRoleProvider"/>
connectionStringName="yafnet"
applicationName="YetAnotherForum"
type="System.Web.Security.SqlRoleProvider"/>





connectionStringName="yafnet"
applicationName="YetAnotherForum"
type="System.Web.Profile.SqlProfileProvider"/>



[url=http://craigwhiteman.blogspot.com.au/]Capt. ArkCAW HonourNRespect- Need an Ark? I Noah Guy![url]
Sponsor

wesclyburn
15 years ago
That error occurs on all new installations. The wizard flow is bugged.

Step 2 calls UpgradeDatabase() (In ./install/default.aspx.cs), which imports the BB Code, but the board record isn't created until step 3 when the system_initialize sproc is executed.

My workaround was to comment-out the restraint in restraints.sql during installation, then run the sql to create it afterwards.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
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