Skip to main content

DNN Upgrade 4.9 - 5.1 Error

Today I upgraded a site that I have been working on from last two months and before moving from staging to production, I thought about using the latest stable upgrade from dnn and apply that to the site.

I was hoping no errors as it stated to be stable version. Over all the experience is not bad as the errors are not something which will make me start over.

The first red mark was during upgrade, it was a event primary key issue where the key already exists and it could not be created. Should have been captured the error automatically but for some reason it throws an error.

The other three issues are with IE 8 browser and not sure if it's just at the time of home page load or also on the other pages but they are their as many people have commented on the IE8 error.

check out the image, log text and text file text to get a detail view about my upgrade results.

Thanks,
Wasay





******************************************************************

System.Data.SqlClient.SqlException: Table 'dnn_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.dnn_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.dnn_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_dnn_EventLogMaster'))
ALTER TABLE dbo.dnn_EventLog
DROP CONSTRAINT PK_dnn_EventLogMaster

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

ALTER TABLE dbo.dnn_EventLog
ADD CONSTRAINT PK_dnn_EventLogMaster PRIMARY KEY CLUSTERED ( LogEventID )
END

******************************************************************


Home webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; MS-RTC LM 8; .NET CLR 3.0.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Timestamp: Wed, 15 Jul 2009 20:24:31 UTC


Message: Object doesn't support this property or method
Line: 23
Char: 9
Code: 0
URI: http://localhost/dnn/Resources/Shared/scripts/initWidgets.js


Message: Invalid argument.
Line: 51
Char: 2
Code: 0
URI: http://localhost/dnn/Resources/Search/Search.js


Message: 'this.rootNode' is null or not an object
Line: 129
Char: 16
Code: 0
URI: http://localhost/dnn/js/dnn.controls.dnnmenu.js