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 ...4.6.0 to 4.6.2 upgrade4.6.0 to 4.6.2 upgrade
Previous
 
Next
New Post
10/1/2008 5:58 AM
 

Guys I'm struggeling. 

 

Why is my DNN installation trying to upgrade from 4.4.0 when I am on 4.6.0?

Any help appreciated.

Bertus

 

I have tried later versions as well nothing will upgrade.  I made a copy of the bodged upgrade if you need any more information.

Output in the browser:

Installing DotNetNuke

Version: 04.06.02

 

Installation Status Report

00:00:00.031 - Installing Version: 4.4.0

 

00:00:00.031 -   Executing Script: DotNetNuke.SetUp.SqlDataProvider 

Success

00:00:00.296 -   Executing Script: DotNetNuke.Schema.SqlDataProvider 

Error! (see DotNetNuke.Schema.log for more information)

00:00:05.515 -   Executing Script: DotNetNuke.Data.SqlDataProvider 

Error! (see DotNetNuke.Data.log for more information)

00:00:06.140 - Installing MemberRole Provider:

 

00:00:06.140 -   Executing Script: InstallCommon

 

00:00:07.250 -   Executing Script: InstallMembership

 

00:00:08.421 -   Executing Script: InstallProfile

 

00:00:08.718 -   Executing Script: InstallRoles

 

00:00:09.156 - Upgrading to Version: 4.6.2

 

00:00:09.171 -   Executing Script: 04.04.01.SqlDataProvider 

Success

00:00:09.265 -   Executing Script: 04.05.00.SqlDataProvider 

Success

00:00:09.906 -   Executing Script: 04.05.01.SqlDataProvider 

Success

00:00:10.015 -   Executing Script: 04.05.02.SqlDataProvider 

Success

00:00:10.187 -   Executing Script: 04.05.03.SqlDataProvider 

Success

00:00:10.250 -   Executing Script: 04.05.04.SqlDataProvider 

Success

00:00:10.312 -   Executing Script: 04.05.05.SqlDataProvider 

Success

00:00:10.328 -   Executing Script: 04.06.00.SqlDataProvider 

Error! (see 04.06.00.log for more information)

00:00:11.000 -   Executing Script: 04.06.01.SqlDataProvider 

Success

00:00:11.000 -   Executing Script: 04.06.02.SqlDataProvider 

Success

00:00:11.015 - Performing General Upgrades

 

00:00:12.546 - Loading Host Settings:

 

00:00:12.640 - Configuring SuperUser:

 

00:00:12.765 - Installing Modules:

 

00:00:12.765 -   Installing Module File Adsense_01.00.01_Install:  

Success

00:00:13.031 -   Installing Module File HTML_04.06.01_Install:  

Success

00:00:13.234 -   Installing Module File Links_03.03.07_Install:  

Success

00:00:13.406 - Executing Additional Scripts:

 

00:00:13.406 -   Creating Portal: My Website

 

00:00:13.531 -   

Error: Error creating Profile Definitions

00:00:13.531 -   

Portal failed to install:Error!

00:00:13.531 - Installing Optional Resources:

 

00:00:13.546 -   Installing Package File LiveID_01.00.00_Install:  

Success

00:00:14.015 -   Installing Package File OpenID_01.00.00_Install:  

Success

Installation Complete

 

Click Here To Access Your Portal

 

Output in 04.06.00.log

System.Data.SqlClient.SqlException: There is already an object named 'PK_PackageAssemblies' in the database.
Could not create 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)

/* Create Assemblies Table */
/***************************/

IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.[Assemblies]') AND OBJECTPROPERTY(id, N'IsTable') = 1)
    BEGIN
        CREATE TABLE dbo.[Assemblies](
            [AssemblyID]    [int] IDENTITY(1,1) NOT NULL,
            [PackageID]        [int] NOT NULL,
            [AssemblyName]    [nvarchar](250) NOT NULL,
            [Version]        [nvarchar](20) NOT NULL,
         CONSTRAINT [PK_PackageAssemblies] PRIMARY KEY CLUSTERED ([AssemblyID] ASC)
        )

        ALTER TABLE dbo.[Assemblies]
            ADD CONSTRAINT [FK_PackageAssemblies_PackageAssemblies] FOREIGN KEY([PackageID]) REFERENCES dbo.[Packages] ([PackageID])   
    END


 

 
New Post
10/1/2008 4:37 PM
 

More information.

This came out of DotNetNuke.Data.log:

System.Data.SqlClient.SqlException: 'FK_EventLogConfig_EventLogTypes' is not a constraint.
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)
 

DotNetSchema.log :

System.Data.SqlClient.SqlException: There is already an object named 'PK_EventLogMaster' in the database.
Could not create 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)

ALTER TABLE dbo.[EventLog] ADD CONSTRAINT [PK_EventLogMaster] PRIMARY KEY CLUSTERED  ([LogGUID])


System.Data.SqlClient.SqlException: There is already an object named 'PK_EventLogTypes' in the database.
Could not create 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)

ALTER TABLE dbo.[EventLogTypes] ADD CONSTRAINT [PK_EventLogTypes] PRIMARY KEY CLUSTERED  ([LogTypeKey])


System.Data.SqlClient.SqlException: There are no primary or candidate keys in the referenced table 'dbo.EventLogTypes' that match the referencing column list in the foreign key 'FK_EventLog_EventLogTypes'.
Could not create 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)

ALTER TABLE dbo.[EventLog] ADD
CONSTRAINT [FK_EventLog_EventLogTypes] FOREIGN KEY ([LogTypeKey]) REFERENCES dbo.[EventLogTypes] ([LogTypeKey]),
CONSTRAINT [FK_EventLog_EventLogConfig] FOREIGN KEY ([LogConfigID]) REFERENCES dbo.[EventLogConfig] ([ID])


System.Data.SqlClient.SqlException: There are no primary or candidate keys in the referenced table 'dbo.EventLogTypes' that match the referencing column list in the foreign key 'FK_EventLogConfig_EventLogTypes'.
Could not create 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)

ALTER TABLE dbo.[EventLogConfig] ADD
CONSTRAINT [FK_EventLogConfig_EventLogTypes] FOREIGN KEY ([LogTypeKey]) REFERENCES dbo.[EventLogTypes] ([LogTypeKey])
 

I hope that shed some light on things.

 

 
New Post
10/1/2008 5:29 PM
 

it is nost likely, that you used a different databaseowner or objectqualifier after the upgrade than before. please compare sqldataprovider settings in your web.config file


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/3/2008 7:59 PM
 

Thanks Sebastian.

 

Yep that was it. 

Thanks to DNN for automerge web.config from 4.6.2 thats all I can say.

I did also find that in some cases using WebHost4Live that when I unzip the package install or upgrade that it is replacing the directory and not merging it.  In other words it replaced my portal directory and thus all the files I had under that.  Could be a setting somewhere but I zipped all the files up merged it on my computer zipped and uploaded the whole lot worked first time.

Bertus

www.enjoythisworld.com

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...4.6.0 to 4.6.2 upgrade4.6.0 to 4.6.2 upgrade


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