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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Upgrade error from 5.6.3 to 6.0Upgrade error from 5.6.3 to 6.0
Previous
 
Next
New Post
7/22/2011 8:23 AM
 
yes, you can Michael, but we aware that it contains a few other items that can overwrite e.g. favicon.ico and the database in app_data (if you're using sql express) as well as the telerik.web.ui.dll - so take care and back up your site first.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/22/2011 12:30 PM
 
i restored my db and file system and deleted the web.config and the telerik.web.ui.dll and now I am getting the error:

Violation of UNIQUE KEY constraint 'IX_Version'. Cannot insert duplicate key in object 'dbo.Version'.

and here is what my log.resource says:

System.Data.SqlClient.SqlException (0x80131904): Column names in each table must be unique. Column name 'FolderMappingID' in table 'dbo.Folders' is specified more than once.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
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)



/* Add FolderMappingID column to Folders table and fill it with right values */
/*****************************************************************************/

ALTER TABLE dbo.[Folders] ADD [FolderMappingID] int NULL


System.Data.SqlClient.SqlException (0x80131904): Table 'PortalLocalization' already has a primary key defined on it.
Could not create constraint. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
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.[PortalLocalization] ADD CONSTRAINT [PK_PortalLocalization] PRIMARY KEY CLUSTERED ([PortalID], [CultureCode])


System.Data.SqlClient.SqlException (0x80131904): Violation of UNIQUE KEY constraint 'IX_ModuleControls'. Cannot insert duplicate key in object 'dbo.ModuleControls'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
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)



/* Add new Download host ModuleControl */
/***************************************/

IF (SELECT COUNT(*) FROM dbo.ModuleControls WHERE ModuleDefID IS NULL AND ControlKey = 'Download') = 0
BEGIN
DECLARE @ModuleDefID int
SET @ModuleDefID = (SELECT ModuleDefID FROM dbo.ModuleDefinitions WHERE FriendlyName = 'Extensions')

INSERT INTO dbo.ModuleControls
( ModuleDefID, ControlKey, ControlTitle, ControlSrc, ControlType )
VALUES ( @ModuleDefID, 'Download', 'Downloader', 'DesktopModules/Admin/Extensions/Download.ascx', 3)
END


I looked at the dbo.Version table before I tried the upgrade and there was no 6.0.0 in it

I have never had this much trouble installing an update.

www.nflmadness.com
 
New Post
7/22/2011 5:37 PM
 
Michael,
that error typically means that you have not rolled back the datbase and files in sync i.e. the database still thinks it's a version (say 6.0) and the files think they're an earlier version (say 5.6.3) - when dotnetnuke starts up it detects the 2 are not in sync and attempts the upgrade. The first thing an upgrade does is log the version upgrade by adding a record to the version table - if that record already exists (as the database is in that version) you get the duplicate key error.

The next thing it does is to try and run the scripts for the version - in this case 6.0.0 -which will naturally have some issues as they've been ran before.

To validate this run select * from version against your database and examine the versions and their created date. Now go to the site and go to the bin folder, right click on dotnetnuke.dll select properties and then click the details tab. Please let me know if they are not out of sync as I described -but if they are please ensure you roll back to the syncronised file/datbase version


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/22/2011 6:00 PM
 
here is what is in the DB
VersionId,Major,Minor,Build,Name,CreatedDate
24, 5 ,6, 3 ,DNNCORP.CE ,2011-07-11 02:13:31.087

dotnetnuke.dll version is 5.6.3.45

www.nflmadness.com
 
New Post
7/22/2011 8:53 PM
 
sorry i left out the date on the dll

here is what is in the DB
VersionId,Major,Minor,Build,Name,CreatedDate
24, 5 ,6, 3 ,DNNCORP.CE ,2011-07-11 02:13:31.087

dotnetnuke.dll version is 5.6.3.45 the date is 6-29-2011

so do I have to alter the date in the database?

www.nflmadness.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Upgrade error from 5.6.3 to 6.0Upgrade error from 5.6.3 to 6.0


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