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 ...DNN 04.09.02 Upgrade Error (PermanentRedirect)DNN 04.09.02 Upgrade Error (PermanentRedirect)
Previous
 
Next
New Post
3/12/2009 1:47 PM
 

I was never able to figure out why one of my sites could not be upgraded with the wizard process.  I had to perform the manual sql update noted above. 

Of the 7 sites I upgraded, I had one that would give me this error when going from 491 to 492.  What is really odd is that this particular site sites on the same server and uses the same sql server as another site that upgraded without any problems.

 

 

 
New Post
4/20/2009 9:24 AM
 
This seems to be related to permissions. I ran into this exact same problem... didn't like the idea of running the scripts manually since I'm going from 4.7 to 4.9 and there are a lot... So I temporarily gave "Everyone" full permission to the DNN directory and hit the install script again. Worked like a charm.
 
New Post
8/30/2009 8:45 PM
 

I also had AD setting enabled so I had to comment them out of my web.config file before the upgrade would run.

That's discussed here http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/107/postid/294390/scope/posts/Default.aspx

 
New Post
9/3/2009 9:58 AM
 

I think this hat to do with the AD- provider too.
The error i received was slightly different to the one mentioned above:

[IndexOutOfRangeException: PermanentRedirect]
System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) +4839010
System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) +67
System.Data.SqlClient.SqlDataReader.get_Item(String name) +15
DotNetNuke.Entities.Tabs.TabController.FillTabInfo(IDataReader dr, Boolean CheckForOpenDataReader, Boolean CheckForLegacyFields) +2006
DotNetNuke.Entities.Tabs.TabController.GetTab(Int32 TabId, Int32 PortalId, Boolean ignoreCache) +225
DotNetNuke.Entities.Portals.PortalSettings.VerifyPortalTab(Int32 PortalId, Int32 TabId) +322
DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +3063
DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +76
DotNetNuke.Common.Globals.GetHostPortalSettings() +154
DotNetNuke.Common.Globals.GetPortalSettings() +82
DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule.OnAuthenticateRequest(Object s, EventArgs e) +51
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

I also have AD enabled but decied to run the sql-scripts manually rather than uncomment the AD- setting.

After running the scripts manually the upgrade was triggered.
Unfortunately it gave me an error on the 4.9.2 script:

System.Data.SqlClient.SqlException: Verletzung der PRIMARY KEY-Einschränkung 'PK_PackageTypes_1'. Ein doppelter Schlüssel kann in das 'dbo.PackageTypes'-Objekt nicht eingefügt werden.
Die Anweisung wurde beendet.
   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   *****/
/*****                                                  *****/
/************************************************************/

INSERT INTO dbo.PackageTypes
 ([PackageType], [Description], [SecurityAccessLevel]) VALUES(N'DashboardControl', N'Dashboard Control', 3)


System.Data.SqlClient.SqlException: Spaltennamen müssen in jeder Tabelle eindeutig sein. Der Spaltenname 'PackageID' wurde in der 'dbo.Dashboard_Controls'-Tabelle mehrmals angegeben.
   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)


ALTER TABLE dbo.Dashboard_Controls
 ADD PackageID int NOT NULL CONSTRAINT DF_Dashboard_Controls_PackageID DEFAULT -1


System.Data.SqlClient.SqlException: Verletzung der PRIMARY KEY-Einschränkung 'PK_EventLogTypes'. Ein doppelter Schlüssel kann in das 'dbo.EventLogTypes'-Objekt nicht eingefügt werden.
Die Anweisung wurde beendet.
   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)


/* Add new EventLog Type */
/*************************/

INSERT INTO dbo.[EventLogTypes]
 ([LogTypeKey], [LogTypeFriendlyName], [LogTypeDescription], [LogTypeOwner], [LogTypeCSSClass])
 VALUES (N'USER_ROLE_UPDATED', N'User Role Updated', N'', N'DotNetNuke.Logging.EventLogType', N'ItemUpdated')


System.Data.SqlClient.SqlException: Spaltennamen müssen in jeder Tabelle eindeutig sein. Der Spaltenname 'PermanentRedirect' wurde in der 'dbo.Tabs'-Tabelle mehrmals angegeben.
   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)


/* Add PermanentRedirect column to Tabs */
/****************************************/

ALTER TABLE dbo.Tabs ADD
 PermanentRedirect bit NOT NULL CONSTRAINT DF_Tabs_PermanentRedirect DEFAULT 0

Any ideas whether this errors could be dangerous in furture or where they come from?

 
New Post
8/18/2010 4:59 AM
 
Thank You :D
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 04.09.02 Upgrade Error (PermanentRedirect)DNN 04.09.02 Upgrade Error (PermanentRedirect)


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