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 ...Upgrade from 5.0.1 to 5.1 failingUpgrade from 5.0.1 to 5.1 failing
Previous
 
Next
New Post
7/1/2009 7:02 AM
 

Hi, I'm trying to upgrade from 5.0.1 to 5.1 using the upgrade package. I follow the normal procedure of backups and then overwriting the DNN directroy with the unzipped files. I change release.config to web.config and copy in the SQL connection settings from my old backed up web.config file along with the machinekey. I then browse to my portal and the following error appears:

Installing DotNetNuke

Version: 05.01.00



 

Installation Status Report

00:00:00.062 - Installing Version: 05.00.00
00:00:00.078 -   Executing Script: DotNetNuke.Schema.SqlDataProvider Error! (see DotNetNuke.Schema.log for more information)
00:00:17.671 -   Executing Script: DotNetNuke.Data.SqlDataProvider Error! (see DotNetNuke.Data.log for more information)
00:00:19.468 - Installing MemberRole Provider:
00:00:19.468 -   Executing Script: InstallCommon
00:00:20.609 -   Executing Script: InstallMembership
00:00:21.515 -   Executing Script: InstallProfile
00:00:21.968 -   Executing Script: InstallRoles
00:00:22.515 - Upgrading to Version: 05.01.00
00:00:23.734 -   Executing Script: 05.00.01.SqlDataProvider Success
00:00:25.046 -   Executing Script: 05.01.00.SqlDataProvider Error! (see 05.01.00.log for more information)
00:00:32.046 -   Executing Application Upgrades: 05.00.01 Success
00:00:33.203 -   Executing Application Upgrades: 05.01.00 Error!
00:00:33.593 -   Cleaning Up Files: 05.00.01 Success
00:00:33.609 -   Cleaning Up Files: 05.01.00 Success
00:00:33.640 -   Updating Config Files: 05.00.01 Success
00:00:33.640 -   Updating Config Files: 05.01.00 Success
00:00:33.703 - Performing General Upgrades
00:00:33.796 - Loading Host Settings:
 

 

 

The DotNetNuke.Schema.log contains the following:

#################  start DotNetNuke.Schema.log  #######################

System.Data.SqlClient.SqlException: The column prefix 'Classification' does not match with a table name or alias name used in the query.
   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)

 


create procedure dbo.GetVendorClassifications

@VendorId  int

as

select ClassificationId,
       ClassificationName,
       'IsAssociated' = case when exists ( select 1 from dbo.VendorClassification vc where vc.VendorId = @VendorId and vc.ClassificationId = Classification.ClassificationId ) then 1 else 0 end
from dbo.Classification

System.Data.SqlClient.SqlException: The column prefix 'Users' does not match with a table name or alias name used in the query.
   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)

create procedure dbo.GetSiteLog2

@PortalID int,
@PortalAlias nvarchar(50),
@StartDate datetime,
@EndDate datetime

as

select dbo.SiteLog.DateTime,
 'Name' =
 case
when dbo.SiteLog.UserId is null then null
else dbo.Users.FirstName + ' ' + Users.LastName
end,
 'Referrer' =
 case
 when dbo.SiteLog.Referrer like '%' + @PortalAlias + '%' then null
 else dbo.SiteLog.Referrer
 end,
 'UserAgent' =
 case
 when dbo.SiteLog.UserAgent like '%MSIE 1%' then 'Internet Explorer 1'
 when dbo.SiteLog.UserAgent like '%MSIE 2%' then 'Internet Explorer 2'
 when dbo.SiteLog.UserAgent like '%MSIE 3%' then 'Internet Explorer 3'
 when dbo.SiteLog.UserAgent like '%MSIE 4%' then 'Internet Explorer 4'
 when dbo.SiteLog.UserAgent like '%MSIE 5%' then 'Internet Explorer 5'
 when dbo.SiteLog.UserAgent like '%MSIE 6%' then 'Internet Explorer 6'
 when dbo.SiteLog.UserAgent like '%MSIE%' then 'Internet Explorer'
 when dbo.SiteLog.UserAgent like '%Mozilla/1%' then 'Netscape Navigator 1'
 when dbo.SiteLog.UserAgent like '%Mozilla/2%' then 'Netscape Navigator 2'
 when dbo.SiteLog.UserAgent like '%Mozilla/3%' then 'Netscape Navigator 3'
 when dbo.SiteLog.UserAgent like '%Mozilla/4%' then 'Netscape Navigator 4'
 when dbo.SiteLog.UserAgent like '%Mozilla/5%' then 'Netscape Navigator 6+'
 else dbo.SiteLog.UserAgent
 end,
 dbo.SiteLog.UserHostAddress,
 dbo.Tabs.TabName
from dbo.SiteLog
left outer join dbo.Users on dbo.SiteLog.UserId = dbo.Users.UserId
left outer join dbo.Tabs on dbo.SiteLog.TabId = dbo.Tabs.TabId
where dbo.SiteLog.PortalId = @PortalID
and dbo.SiteLog.DateTime between @StartDate and @EndDate
order by dbo.SiteLog.DateTime desc

System.Data.SqlClient.SqlException: The column prefix 'dbo.Files' does not match with a table name or alias name used in the query.
   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)

CREATE PROCEDURE dbo.[GetModuleSettings]

@ModuleId int

AS
SELECT
 SettingName,
 CASE WHEN LEFT(LOWER(dbo.ModuleSettings.SettingValue), 6) = 'fileid'
  THEN
   (SELECT Folder + FileName 
    FROM Files
    WHERE 'fileid=' + convert(varchar,dbo.Files.FileID) = dbo.ModuleSettings.SettingValue
   )
  ELSE
   dbo.ModuleSettings.SettingValue 
  END
 AS SettingValue
FROM dbo.ModuleSettings
WHERE  ModuleId = @ModuleId

System.Data.SqlClient.SqlException: The column prefix 'ScheduleHistory' does not match with a table name or alias name used in the query.
The column prefix 'ScheduleHistory' does not match with a table name or alias name used in the query.
The column prefix 'ScheduleHistory' does not match with a table name or alias name used in the query.
   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)

CREATE PROCEDURE dbo.PurgeScheduleHistory

AS

DELETE FROM dbo.ScheduleHistory
FROM dbo.Schedule s
WHERE (
  SELECT COUNT(*)
  FROM dbo.ScheduleHistory sh
  WHERE sh.ScheduleID = ScheduleHistory.ScheduleID
  AND sh.StartDate >= ScheduleHistory.StartDate
) > s.RetainHistoryNum
AND s.RetainHistoryNum <> -1
AND s.ScheduleID = ScheduleHistory.ScheduleID

#################  end DotNetNuke.Schema.log  #########################

Any help or suggestions would be greatly appreciated.

Thanks, Donal.


 

 
New Post
7/1/2009 8:13 AM
 

you shouldn't have touched web.config, you now created a new DNN database, I assume inside existing one (maybe with different objectQualifier).

I suggest to restore database and web.config and just browse your site afterwards.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/1/2009 10:52 AM
 

Hi Sebastian, many thanks for your quick reply. Your solution worked perfectly and I'm up and running.

My initial upgrade procedure was based on the readme.txt file in the documentation folder of the DotNetNuke_Community_05.01.00_Upgrade.zip which contains the following instructions:

#######  start readme.txt extract  ################

Application Upgrades

- make sure you always backup your files/database before upgrading to a new version
- BACKUP your web.config file in the root of your site
- unzip the code over top of your existing application ( using the Overwrite and Use Folder Names options )
- rename release.config -> web.config
- merge any localized settings from your old web.config to the new web.config. These typically include:
  - connection strings ( SiteSqlServer )
  - machine keys ( validationKey and decryptionKey )
  - objectQualifier
- browse to localhost/DotNetNuke in your web browser
- the application will automatically execute the necessary database scripts and provide feedback in the browser

#########  end redame.txt extract  #################

Many thanks for the help, Donal.

 

 
New Post
7/1/2009 12:14 PM
 

Thanks, I logged the issue: http://support.dotnetnuke.com/Default.aspx?p=2&i=10318


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/2/2009 3:36 PM
 

Hello Sebastian,

If the existing instructions for upgrading are incorrect, please could you explain what the correct procedure is.

Cheers

Chris

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade from 5.0.1 to 5.1 failingUpgrade from 5.0.1 to 5.1 failing


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