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 ...Error with upgrade 04.09.04 to 05.01.00Error with upgrade 04.09.04 to 05.01.00
Previous
 
Next
New Post
6/29/2009 3:14 PM
 

Upgrading DotNetNuke

Current Assembly Version: 05.01.00

Current Database Version: 04.09.04


 

Upgrade Status Report

00:00:00.090 - Upgrading to Version: 05.01.00
00:00:00.507 - Executing Script: 05.00.00.SqlDataProvider Success
00:00:09.742 - Executing Script: 05.00.01.SqlDataProvider Success
00:00:10.883 - Executing Script: 05.01.00.SqlDataProvider Error! (see 05.01.00.log for more information)
00:00:15.705 - Executing Application Upgrades: 05.00.00 Success
00:00:23.872 - Executing Application Upgrades: 05.00.01 Success
00:00:23.903 - Executing Application Upgrades: 05.01.00 Success
00:00:26.602 - Cleaning Up Files: 05.00.00 Success
00:00:26.654 - Cleaning Up Files: 05.00.01 Success
00:00:26.663 - Cleaning Up Files: 05.01.00 Success
00:00:26.766 - Updating Config Files: 05.00.00 Success
00:00:26.766 - Updating Config Files: 05.00.01 Success
00:00:26.767 - Updating Config Files: 05.01.00 Success
00:00:26.772 - Performing General Upgrades
00:00:27.175 - Installing Optional Modules:
00:00:27.180 - Installing Package File HTML_Community_05.01.00_Install: Success
00:00:28.392 - Installing Optional Skins:
00:00:28.393 - Installing Optional Containers:
00:00:28.393 - Installing Optional Languages:
00:00:28.393 - Installing Optional Providers:
00:00:28.394 - Installing Package File AspNetMembershipProvider_05.01.00_Install: Success
00:00:28.506 - Installing Package File CorePermissionProvider_05.01.00_Install: Success
00:00:28.589 - Installing Package File DatabaseLoggingProvider_05.01.00_Install: Success
00:00:28.675 - Installing Package File DNNMembershipProvider_05.01.00_Install: Success
00:00:28.759 - Installing Package File DNNMenuNavigationProvider_05.01.00_Install: Success
00:00:28.825 - Installing Package File DNNTreeNavigationProvider_05.01.00_Install: Success
00:00:28.886 - Installing Package File FckHtmlEditorProvider_02.00.04_Install: Success
00:00:30.757 - Installing Package File FileBasedCachingProvider_05.01.00_Install: Success
00:00:30.818 - Installing Package File SchedulingProvider_05.01.00_Install: Success
00:00:30.877 - Installing Package File SearchIndexProvider_05.01.00_Install: Success
00:00:30.936 - Installing Package File SearchProvider_05.01.00_Install: Success
00:00:31.010 - Installing Package File SolpartMenuNavigationProvider_05.01.00_Install: Success
00:00:31.084 - Installing Optional AuthSystems:
00:00:31.084 - Installing Package File LiveID_01.00.01_Install: Success
00:00:31.185 - Installing Package File OpenID_02.00.00_Install: Success
00:00:31.326 - Installing Optional Packages:

Upgrade Complete

 

 
New Post
6/29/2009 3:35 PM
 

Please post the content of /providers/dataproviders/sqldataprovider/05.01.00.log file.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/29/2009 10:20 PM
 

In an effort to help provide further information, I just upgraded a small 4.9.2 install to the 5.1 official release and received the same error as the original poster of this message thread.  The contents of my log file that it said to reference is below:

System.Data.SqlClient.SqlException: Table 'EventLog' already has a primary key defined on it.
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)

 

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

IF NOT EXISTS (SELECT 1 FROM INformATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'dbo.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.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_EventLogMaster'))
ALTER TABLE dbo.EventLog
DROP CONSTRAINT PK_EventLogMaster

ALTER TABLE dbo.EventLog
ADD LogEventID bigint NOT NULL IDENTITY (1, 1)

ALTER TABLE dbo.EventLog
ADD CONSTRAINT PK_EventLogMaster PRIMARY KEY CLUSTERED ( LogEventID )
END
 

 
New Post
6/30/2009 4:33 AM
 

Sebastian Leupold wrote
 

Please post the content of /providers/dataproviders/sqldataprovider/05.01.00.log file.

 

System.Data.SqlClient.SqlException: Table 'EventLog' already has a primary key defined on it.
Could not create constraint. See previous errors.
   at System.Data.SqlClient.SqlConnection.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.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.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_EventLogMaster'))
   ALTER TABLE dbo.EventLog
    DROP CONSTRAINT PK_EventLogMaster

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

 
New Post
6/30/2009 4:48 AM
 

This is a known issue, which will be fixed in next upgrade and shall not affect function of your web site.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Error with upgrade 04.09.04 to 05.01.00Error with upgrade 04.09.04 to 05.01.00


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