I previously succeeded in upgrading my web application project (files) and database from 6.0.58 to 8.0. Now I need to deploy the files and upgrade a different CMS database from version 6.0.58 to 8.0. After doing so, I'm getting all kinds of erratic failures.
The steps I took to upgrade the database were simple, but different between the first (successful) and second (unsuccessful) attempts.
The first time, I upgraded the database and files in tandem, following these general steps:
- Ran the 7.0 upgrade utility.
- Ran the 7.0.34 hotfix utility.
- Ran the 8.0 upgrade utility.
The files and database were upgraded together, successfully.
The second time, I just needed to upgrade the database, so I:
- Ran upgrade_6_0.sql (from the Kentico 7 upgrade package) on the database.
- Ran upgrade_8_0.sql (from the Kentico 8 upgrade package) on the database.
Now the administrative interface reports that it's version 8.0. I can use all of the "apps" that I've tried. However, the actual pages will not render. I pasted some common errors below:
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at CMS.DataEngine.SimpleDataClass.SetData(Int32 columnIndex, Object value)
at CMS.DataEngine.SimpleDataClass.LoadData(DataRow dr)
at CMS.DataEngine.AbstractInfo`1.LoadFromDataRow(DataRow dr)
at CMS.DocumentEngine.DocumentFieldsInfo.New(String className, DataRow dataRow)
at CMS.DocumentEngine.TreeNode.LoadFromDataRow(DataRow dr)
at CMS.DocumentEngine.TreeNode.Initialize(String className, DataRow dataRow, TreeProvider treeProvider)
at CMS.DocumentEngine.TreeNode.New[NodeType](String className, DataRow dataRow, TreeProvider treeProvider)
at CMS.DocumentEngine.TreeProvider.SelectSingleNode[NodeType](NodeSelectionParameters parameters)
at CMS.DocumentEngine.TreeProvider.SelectSingleNode[NodeType](String siteName, String aliasPath, String cultureCode, Boolean combineWithDefaultCulture, String classNames, String where, String orderBy, Int32 maxRelativeLevel, Boolean selectOnlyPublished, String columns)
at CMS.DocumentEngine.TreeProvider.SelectSingleNode(String siteName, String aliasPath, String cultureCode, Boolean combineWithDefaultCulture, String classNames, String where, String orderBy, Int32 maxRelativeLevel, Boolean selectOnlyPublished, String columns)
at CMS.DocumentEngine.TreeProvider.SelectSingleNode(Int32 nodeId, String culture, String classNames)
at CMS.DocumentEngine.DocumentContext.get_CurrentDocument()
at CMS.DocumentEngine.PageSecurityHelper.CheckPermissions(String siteName, PageInfo pi, Boolean excludeSystem, String relativePath)
at CMS.DocumentEngine.PageSecurityHelper.CheckPageSecurity(PageInfo pageInfo, SiteNameOnDemand siteName, ViewModeOnDemand viewMode, String relativePath)
at CMS.URLRewritingEngine.URLRewritingHandlers.CheckSecurity(RequestStatusEnum status, SiteNameOnDemand siteName, ViewModeOnDemand viewMode, String relativePath)
at CMS.URLRewritingEngine.URLRewritingHandlers.CheckSecurity(Object sender, EventArgs eventArgs)
at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler`1 h, TArgs e)
at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List`1 list, TArgs e, Boolean important)
at CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler`2.StartEvent(TArgs e)
at CMS.Base.ApplicationModule.AcquireRequestState(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Here's another:
System.Exception: [LockObject.EnterRead]: Primary thread didn't provide valid result, the Data property must be explicitly set in order to provide the result to other threads, please review the code.
at CMS.Base.LockObject.EnterRead[OutputType](OutputType& output)
at CMS.Helpers.CachedSection`1.EnterLock(TData& result)
at CMS.Helpers.CachedSection`1..ctor(TData& result, CacheSettings settings)
at CMS.DocumentEngine.DocumentContext.get_CurrentDocument()
at CMS.DocumentEngine.PageSecurityHelper.CheckPermissions(String siteName, PageInfo pi, Boolean excludeSystem, String relativePath)
at CMS.DocumentEngine.PageSecurityHelper.CheckPageSecurity(PageInfo pageInfo, SiteNameOnDemand siteName, ViewModeOnDemand viewMode, String relativePath)
at CMS.URLRewritingEngine.URLRewritingHandlers.CheckSecurity(RequestStatusEnum status, SiteNameOnDemand siteName, ViewModeOnDemand viewMode, String relativePath)
at CMS.URLRewritingEngine.URLRewritingHandlers.CheckSecurity(Object sender, EventArgs eventArgs)
at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler`1 h, TArgs e)
at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List`1 list, TArgs e, Boolean important)
at CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler`2.StartEvent(TArgs e)
at CMS.Base.ApplicationModule.AcquireRequestState(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
And this error shows up in the Event Log, over and over again:
EventType: E
Source: MacroResolver
EventCode: CHECKSECURITY
UserID: 84
UserName: bdrenner
EventDescription: Security check of the expression 'Rule("!CurrentUser.CheckPrivilegeLevel(UserPrivilegeLevelEnum.GlobalAdmin);", "does not have!0select operationtext0GlobalAdminGlobalAdmin0select leveltext1")|(user)administrator|(hash)1b18c0ae79f22696ec3155661ad589fa10ba2df8d11654bae55ca1eeba57ed6f' didn't pass. The expression was signed by user 'administrator'. Remove the signature and re-save the expression by a user with proper permissions.
EventUrl: /Admin/CMSAdministration.aspx
I'm stumped. What did I do wrong, and how can I successfully upgrade a database from 6.0.58 to 8.0 independently from the files?