Subject: Error installing HTML_Community_05.01.04_Install
Prev Next
You are not authorized to post a reply.

AuthorMessages
colbyUser is Offline
New Poster
New Poster
Posts:19

02/03/2010 4:49 PM  

Mitchel.

I have looke deverywhere and tried everything that I can think of.

I am trying to upgrade to 5.1.4 from 4.8.4.  I have done this before with other sites and no issues.  This one is giving me lots of grief.  The site was originall 3.2.2 which I updated to 4.8.4 following the stepped approach that is listed on your upgrade page.  This is the approach that I have always followed and it has been great!

The HTML_Community_05.01.04_Install is the only item that is failing on the install.  In trying to load the extension through the Host->Extensions section, it fails with an error loading the SQL script, specifically provider 5.1.0.  i try running that by itself through Host->SQL gives me the same error: (I parsed this out to try and make sense of it)

System.Data.SqlClient.SqlException:

Invalid column name 'DesktopHtml'. Invalid column name 'CreatedByUser'. Invalid column name 'CreatedDate'. Invalid column name 'CreatedByUser'. Invalid column name 'CreatedDate'.
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)

IF NOT EXISTS (select * from dbo.sysobjects where id = object_id(N'dbo.HtmlTextLog') and OBJECTPROPERTY(id, N'IsTable') = 1)

BEGIN update dbo.HtmlText

set Content = DesktopHtml, Version = 1, IsPublished = 1, CreatedByUserID = CreatedByUser, CreatedOnDate = CreatedDate, LastModifiedByUserID = CreatedByUser, LastModifiedOnDate = CreatedDate

ALTER TABLE dbo.HtmlText

DROP COLUMN DesktopHtml, DesktopSummary, CreatedByUser, CreatedDate

CREATE TABLE dbo.HtmlTextLog

( HtmlTextLogID int NOT NULL IDENTITY (1, 1), ItemID int NOT NULL, StateID int NOT NULL, Comment nvarchar(4000), Approved bit NOT NULL, CreatedByUserID int NOT NULL, CreatedOnDate datetime NOT NULL ) ON [PRIMARY]
ALTER TABLE dbo.HtmlTextLog

ADD CONSTRAINT PK_HtmlTextLog PRIMARY KEY CLUSTERED ( HtmlTextLogID ) ON [PRIMARY]

CREATE TABLE dbo.HtmlTextUsers
( HtmlTextUserID int NOT NULL IDENTITY (1, 1), ItemID int NOT NULL, StateID int NOT NULL, ModuleID int NOT NULL, TabID int NOT NULL, UserID int NOT NULL, CreatedOnDate datetime NOT NULL ) ON [PRIMARY]

ALTER TABLE dbo.HtmlTextUsers
ADD CONSTRAINT PK_HtmlTextUsers PRIMARY KEY CLUSTERED ( HtmlTextUserID ) ON [PRIMARY] ALTER TABLE dbo.HtmlText WITH NOCHECK ADD CONSTRAINT FK_HtmlText_WorkflowStates FOREIGN KEY ( StateID ) REFERENCES dbo.WorkflowStates ( StateID ) ON UPDATE NO ACTION ON DELETE NO ACTION NOT FOR REPLICATION

ALTER TABLE dbo.HtmlTextLog
WITH NOCHECK ADD CONSTRAINT FK_HtmlTextLog_HtmlText FOREIGN KEY ( ItemID ) REFERENCES dbo.HtmlText ( ItemID ) ON UPDATE NO ACTION ON DELETE CASCADE NOT FOR REPLICATION

ALTER TABLE dbo.HtmlTextLog
WITH NOCHECK ADD CONSTRAINT FK_HtmlTextLog_WorkflowStates FOREIGN KEY ( StateID ) REFERENCES dbo.WorkflowStates ( StateID ) ON UPDATE NO ACTION ON DELETE NO ACTION NOT FOR REPLICATION

ALTER TABLE dbo.HtmlTextUsers
WITH NOCHECK ADD CONSTRAINT FK_HtmlTextUsers_HtmlText FOREIGN KEY ( ItemID ) REFERENCES dbo.HtmlText ( ItemID ) ON UPDATE NO ACTION ON DELETE CASCADE NOT FOR REPLICATION END   
 
I am stuck at this point in time.  My test site is ncgt.cstech.ca and you can see all of the failed HTML modules on the front page.

Any help with this would be great!

Cheers
Dave 
 

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:6089

02/04/2010 10:00 AM  
From the looks of it, another upgrade script failed, not adding columns to a table that should have been there.

My recommendation would be to roll back to the previous version, THEN upgrade straight to DNN 5.2.2.

-Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

For shared hosting I recommend PowerDNN

This site is hosted on a Dedicated Server from PowerDNN.com

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
colbyUser is Offline
New Poster
New Poster
Posts:19

02/04/2010 10:48 AM  

So roll back to 4.8.4 and then upgrade straight to 5.2.2?  Or further back...

Cheers

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:6089

02/04/2010 10:58 AM  
If the 4.8.4 upgrade was successful, that should be fine!

-Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

For shared hosting I recommend PowerDNN

This site is hosted on a Dedicated Server from PowerDNN.com

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
colbyUser is Offline
New Poster
New Poster
Posts:19

02/04/2010 12:08 PM  
Perfect, I will give that a try in the lab and report back.

Cheers
You are not authorized to post a reply.
Forums >Development Discussion >DotNetNuke > Error installing HTML_Community_05.01.04_Install



ActiveForums 3.7