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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Installing DNN from DotNetNuke_Community_05.02.03_InstallInstalling DNN from DotNetNuke_Community_05.02.03_Install
Previous
 
Next
New Post
3/25/2010 5:45 AM
 

I have set up MS SQL 2008 DB, changed the settings inthe Web.config file, installed virtual dir on folder (www.myweb.com/portal) and ran the install wizard. The first step using custom option which completes ok. We use an object qualifier 'lwg_'  then when it gets to running the DB scripts the following progress shows:

Installing Database - Version 05.00.00...Success
Upgrading Database to Version 05.00.01...Success
Upgrading Database to Version 05.01.00...FAILURE ERROR: (see 05.01.00.log for more information)

The error log is:
System.Data.SqlClient.SqlException: Constraint 'PK_EventLogMaster' does not belong to table 'lwg_EventLog'.
Could not drop constraint. See previous errors.
   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.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
   at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)

/* Change primary key of EventLog Table */
/****************************************/

IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'dbo.lwg_EventLog' AND COLUMN_NAME = 'LogEventID')
 BEGIN
  --Note this name does NOT have an object qualifier in 4.x upgrades
  IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'PK_EventLogMaster'))
   ALTER TABLE dbo.lwg_EventLog
    DROP CONSTRAINT PK_EventLogMaster

  --Note this name does have an object qualifier in 5.x installs
  IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'PK_lwg_EventLogMaster'))
   ALTER TABLE dbo.lwg_EventLog
    DROP CONSTRAINT PK_lwg_EventLogMaster

  --Some scenarios have the primary key as PK_lwg_EventLog
  IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'PK_lwg_EventLog'))
   ALTER TABLE dbo.lwg_EventLog
    DROP CONSTRAINT PK_lwg_EventLog

  ALTER TABLE dbo.lwg_EventLog
   ADD LogEventID bigint NOT NULL IDENTITY (1, 1)
   
  ALTER TABLE dbo.lwg_EventLog
   ADD CONSTRAINT PK_lwg_EventLogMaster PRIMARY KEY CLUSTERED ( LogEventID )  
 END

Any help on what to do to sort this out?

 


The Wellness Coach - being proactive about health! Without our health we have nothing. Check your wellness score on www.healthwellness.co.za
 
New Post
3/25/2010 7:09 AM
 
as far as I can see, you may ignore the issue.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/25/2010 7:27 AM
 

I would ignore it, if the install wizard continued, but it stops at this point and the Next button doesn't get enabled.

I set up a site with 5.2.2 a while ago and I didn't have this issue. I was thinking of deleting what's in the DB and the site folder and starting again with 5.2.2.

Any advise?


The Wellness Coach - being proactive about health! Without our health we have nothing. Check your wellness score on www.healthwellness.co.za
 
New Post
3/25/2010 4:02 PM
 

Hmm... interesting.. we fixed 2 or 3 PK_ errors during 5.3.x testing.

I can't replicate this no matter what I use for an OQ at the database installation screen.

Aside from db connection strings what else did you change/edit in the web.config file?

Thx,

 


Ken Grierson
DotNetNuke Corporation
Test Lead
 
New Post
3/26/2010 10:35 AM
 

I abandoned using the 5.2.3 install and went back to 5.2.2 Install zip file which worked previously. SAME ERROR!! The DB scripts stop running at the same place and the Install Wizard stops. The difference between the 5.2.2 installation I did successfully some time back and this one is that the successful install went into an EMPTY MSSQL 2008 database. This installation is using a database MSSQL 2008 DB with other tables in it, including a DNN installation WITHOUT a prefix qualifier.

The picture is 5.2.2 install into clean DB worked.
5.2.2 and 5.2.3 installs (using Prefix qalifier "lwg_") into DB with another DNN without prefix qualifier.

Where are the DB scripts the Install Wizard uses, maybe I can find the problem there, fix it and move on - ANY help please.


The Wellness Coach - being proactive about health! Without our health we have nothing. Check your wellness score on www.healthwellness.co.za
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Installing DNN from DotNetNuke_Community_05.02.03_InstallInstalling DNN from DotNetNuke_Community_05.02.03_Install


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