More in this section

Forums / Bugs & Issues / Help, site down after 4.2 upgrade.

Help, site down after 4.2 upgrade.

3 posts, 0 answered
  1. Eric
    Eric avatar
    2 posts
    Registered:
    04 Jun 2007
    01 Sep 2011
    Link to this post
    Hello, I upgraded from 4.1 spa to 4.2, now the site is down with the following error, please help:

    Server Error in '/' Application.

    Row for OID GenericOID@cc0705a9 Library content_id=23ea470f-e8ed-4208-8a81-07d2ea57e3a0 NOTRES  is not in the hierarchy starting at Telerik.Sitefinity.Libraries.Model.Library ('sf_libraries') (voa_class for row is 0)

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: Telerik.OpenAccess.Exceptions.DataStoreException: Row for OID GenericOID@cc0705a9 Library content_id=23ea470f-e8ed-4208-8a81-07d2ea57e3a0 NOTRES  is not in the hierarchy starting at Telerik.Sitefinity.Libraries.Model.Library ('sf_libraries') (voa_class for row is 0)

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [DataStoreException: Row for OID GenericOID@cc0705a9 Library content_id=23ea470f-e8ed-4208-8a81-07d2ea57e3a0 NOTRES  is not in the hierarchy starting at Telerik.Sitefinity.Libraries.Model.Library ('sf_libraries') (voa_class for row is 0)]
       DynamicModule.ns.Wrapped_OpenAccessLibrariesProvider_22a971f701b9434f959076c31949e6b7.OnUpgraded(UpgradingContext context, Int32 upgradedFromSchemaVersionNumber) +200
       Telerik.Sitefinity.Data.OA.OpenAccessConnection.UpdateMetadata(MetadataSource metadataSource, String moduleName, List`1 dynamicTypesToRegister, IOpenAccessMetadataProvider provider) +2973
    
    [Exception: Unable to upgrade database schema metadataSource provided by 'Telerik.Sitefinity.Modules.Libraries.Data.OpenAccessLibrariesProvider': Row for OID GenericOID@cc0705a9 Library content_id=23ea470f-e8ed-4208-8a81-07d2ea57e3a0 NOTRES  is not in the hierarchy starting at Telerik.Sitefinity.Libraries.Model.Library ('sf_libraries') (voa_class for row is 0)]
       DynamicModule.ns.Wrapped_OpenAccessLibrariesProvider_22a971f701b9434f959076c31949e6b7.Initialize(String providerName, NameValueCollection config, Type managerType) +198
       Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +1342
       Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +63
       Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +297
       Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +131
       BuildUp_Telerik.Sitefinity.Modules.Libraries.LibrariesManager(IBuilderContext ) +179
       Telerik.Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context) +12
       Telerik.Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +195
       Telerik.Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +190
       Telerik.Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +163
    
    [ResolutionFailedException: Resolution of the dependency failed, type = "Telerik.Sitefinity.Modules.Libraries.LibrariesManager", name = "OpenAccessDataProvider".
    Exception occurred while: Calling constructor Telerik.Sitefinity.Modules.Libraries.LibrariesManager(System.String providerName).
    Exception is: Exception - Unable to upgrade database schema metadataSource provided by 'Telerik.Sitefinity.Modules.Libraries.Data.OpenAccessLibrariesProvider': Row for OID GenericOID@cc0705a9 Library content_id=23ea470f-e8ed-4208-8a81-07d2ea57e3a0 NOTRES  is not in the hierarchy starting at Telerik.Sitefinity.Libraries.Model.Library ('sf_libraries') (voa_class for row is 0)
    -----------------------------------------------
    At the time of the exception, the container was:
    
      Resolving Telerik.Sitefinity.Modules.Libraries.LibrariesManager,OpenAccessDataProvider
      Calling constructor Telerik.Sitefinity.Modules.Libraries.LibrariesManager(System.String providerName)
    ]
       Telerik.Sitefinity.Data.ManagerBase.GetManager(Type managerType, String providerName) +130
       Telerik.Sitefinity.Modules.Libraries.LibrariesNodeFilter.IsNodeAccessPrevented(PageSiteNode pageNode) +130
       Telerik.Sitefinity.Web.SiteMapBase.IsAccessibleToUserInternal(SiteMapNode node, SitefinityPrincipal user) +405
       Telerik.Sitefinity.Web.NodeFiltersCache.IsAccessible(SiteMapBase sitemap, SiteMapNode node, SitefinityPrincipal user) +219
       Telerik.Sitefinity.Web.SiteMapBase.IsAccessibleToUser(HttpContext context, SiteMapNode node) +148
       Telerik.Sitefinity.Web.SitefinitySiteMap.IsAccessibleToUser(HttpContext context, SiteMapNode node) +19
       System.Web.SiteMapNode.IsAccessibleToUser(HttpContext context) +17
       Telerik.Sitefinity.Web.SitefinityRoute.CheckSecurity(HttpContextBase httpContext, PageSiteNode node) +40
       Telerik.Sitefinity.Web.SitefinityRoute.GetRouteData(HttpContextBase httpContext) +396
       System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +285
       System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +60
       System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +86
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1              

  2. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    02 Sep 2011
    Link to this post
    I guess you have restarted the server.

    Are you still having problems. How about some feedback.

    Markus
  3. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    18 Sep 2017
    02 Sep 2011
    Link to this post
    Hello Eric,

    The error indicates a wrong entry for column voa_class which is in sf_libraries table in your project database.
    The entry in column voa_class is 0 for Library with Id=23ea470f-e8ed-4208-8a81-07d2ea57e3a0 which is not appropriate.
    I have few suggestions that can fix the problem.
    1. Update the value of voa_class to a value similar to the values of other libraries with sql query
    2. Execute API code that will delete the library (this is an option only if you can recreate it without additional efforts). Here is a reference. (by the library id you can check if it is image lib, documents, or video lib, I assume it is image library with the next API code)
    Copy Code
    LibrariesManager libManager = LibrariesManager.GetManager();
        Album albumToDelete = libManager.GetAlbums()
                                  .Where(a => a.Title == albumTitle)
                                  .Single();
        libManager.DeleteAlbum(albumToDelete);
        libManager.SaveChanges();
    3. Create a backup of the library contents and delete it before the upgrade. Then attempt to upgrade the project again.


    Best wishes,
    Stanislav Velikov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

3 posts, 0 answered