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 ...Any Answers to the HTML_Community_05.01.03 upgrade errrorAny Answers to the HTML_Community_05.01.03 upgrade errror
Previous
 
Next
New Post
10/2/2009 3:36 AM
 

I tried to reinstall and got

 

Error loading files from temporary folder - see below
StartJob Starting Installation
Info Starting Installation - DNN_HTML
Info Starting Installation - Script
Info Begin Sql execution
Info Creating backup of previous version - Providers\DataProviders\SqlDataProvider\05.01.03.SqlDataProvider
Info Created - Providers\DataProviders\SqlDataProvider\05.01.03.SqlDataProvider
Info Executing 05.01.03.SqlDataProvider
Info Start Sql execution: 05.01.03.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_ModuleSettings'. Cannot insert duplicate key in object 'dbo.ModuleSettings'. 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) /************************************************************/ /***** SqlDataProvider *****/ /***** *****/ /***** *****/ /***** Note: To manually execute this script you must *****/ /***** perform a search and replace operation *****/ /***** for dbo. and *****/ /***** *****/ /************************************************************/ update dbo.ModuleSettings set SettingName = 'HtmlText_ReplaceTokens' where SettingName = 'TEXTHTML_ReplaceTokens'
Info End Sql execution: 05.01.03.SqlDataProvider file
Info Finished Sql execution
Failure Installation Failed - Script
Info Installation Failed - DNN_HTML
Info Deleted temporary install folder
EndJob Installation Failed

 
New Post
10/2/2009 2:37 PM
 

The problem with the primary key violation looks to be where the provider is running:

update {databaseOwner}{objectQualifier}ModuleSettings
set    SettingName = 'HtmlText_ReplaceTokens'
where  SettingName = 'TEXTHTML_ReplaceTokens'
GO

Turns out that there may be instances where the SettingName is already HtmlText_ReplaceTokens but it also has a duplicate entry for the same module using TEXTHTML_ReplaceTokens.  I did a simple search in my database

select count(moduleid), moduleid from ModuleSettings where settingname = 'TEXTHTML_ReplaceTokens' OR settingname = 'HtmlText_ReplaceTokens' group by moduleid order by count(moduleid) desc

 And found a whole bunch with 2 entries (one for each).  I went and did a delete of all the ones with the old entry and then reinstalled the HTML module v5.1.3 and voila!  Looks like a past install (5.1.1, 5.1.2?) dorked up the settings and didn't do anything to get rid of the old settings.


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
10/2/2009 7:20 PM
 

 Jon I had this same issue with one of my upgrades, deleting the extra modulesettings fixes the error and allows for reinstalls.

 

I ended up doing the following, though you could also add in your count to make sure you only delete ones that are doubled up.

 

delete from {databaseOwner}{objectQualifier}ModuleSettings
where  SettingName = 'TEXTHTML_ReplaceTokens'
GO


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
10/3/2009 4:12 AM
 

The setting simply holds the state of the "Replace Tokens" module setting, which defaults to false. In most cases there is not change, if you delete the setting in the database, if you have instances, where you are using this feature, you should review module settings after performing an app restart.


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 ...Any Answers to the HTML_Community_05.01.03 upgrade errrorAny Answers to the HTML_Community_05.01.03 upgrade errror


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