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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Upgrade error.Upgrade error.
Previous
 
Next
New Post
9/14/2009 2:54 AM
 

Hi, I have not been able to upgrade to version 5. I'm using 04.09.04.

Attempt to upgrade to any version 5 fails but for version 5.1.2, I only receive 1 error.

It points to 05.00.00.log. I've copy and paste it here. Any idea what is wrong?

 

 

 System.Data.SqlClient.SqlException: Violation of UNIQUE KEY constraint 'IX_DesktopModules_ModuleName'. Cannot insert duplicate key in object 'dbo.DesktopModules'.

The statement has been terminated.
   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)
 
 
 
/* Update Site Log Module */
/**************************/
 
DECLARE @ModuleDefID int
SET @ModuleDefID = (SELECT ModuleDefID FROM dbo.ModuleDefinitions WHERE FriendlyName = 'Site Log')
 
UPDATE dbo.DesktopModules
SET ModuleName = 'SiteLog',
   FolderName = 'Admin/SiteLog'
WHERE ModuleName = 'Site Log'
 
UPDATE dbo.ModuleControls
SET ControlSrc = 'DesktopModules/Admin/SiteLog/SiteLog.ascx',
   IconFile = '~/images/icon_sitelog_32px.gif'
WHERE ControlSrc = 'Admin/Log/SiteLog.ascx'
   AND ModuleDefID = @ModuleDefID
 
 
 
System.Data.SqlClient.SqlException: Violation of UNIQUE KEY constraint 'IX_DesktopModules_ModuleName'. Cannot insert duplicate key in object 'dbo.DesktopModules'.
The statement has been terminated.
   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)
 
 
 
/* Update Log Viewer Module */
/*****************************/
 
DECLARE @ModuleDefID int
SET @ModuleDefID = (SELECT ModuleDefID FROM dbo.ModuleDefinitions WHERE FriendlyName = 'Log Viewer')
 
UPDATE dbo.DesktopModules
SET ModuleName = 'LogViewer',
   FolderName = 'Admin/LogViewer'
WHERE ModuleName = 'Log Viewer'
 
UPDATE dbo.ModuleControls
SET ControlSrc = 'DesktopModules/Admin/LogViewer/LogViewer.ascx',
   ControlType = 0,
   IconFile = '~/images/icon_viewstats_32px.gif'
WHERE ControlSrc = 'Admin/Logging/LogViewer.ascx'
   AND ModuleDefID = @ModuleDefID
 
UPDATE dbo.ModuleControls
SET ControlSrc = 'DesktopModules/Admin/LogViewer/EditLogTypes.ascx',
   IconFile = '~/images/icon_viewstats_32px.gif'
WHERE ControlSrc = 'Admin/Logging/EditLogTypes.ascx'
   AND ModuleDefID = @ModuleDefID
 
 
 
 
 
New Post
9/14/2009 4:48 AM
 

 There seem to be 2 module definitions called "Site Log". you may need to review table in the database and adjust the proper record accordingly.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/17/2009 1:58 AM
 

 I found 1 with the name Site Log and another SiteLog (without the space).

As far as I know, it shouldn't be a problem since its still different.

I am not sure if both modules come with the DNN installation or it may be a custom module.

Can anyone let me know which they have?

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Upgrade error.Upgrade error.


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