+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / ValueFactory attempted to access the Value property of this instance

ValueFactory attempted to access the Value property of this instance

7 posts, 1 answered
  1. Robert
    Robert avatar
    70 posts
    Registered:
    05 Feb 2009
    21 Jul 2013
    Link to this post
    Hi,

    I'm getting this msg after upgrading from 5.3 to 6.1, no idea, what it could be.

    Anyone experiencing the same?

    Thanks,
    Robert
  2. Robert
    Robert avatar
    70 posts
    Registered:
    05 Feb 2009
    22 Jul 2013 in reply to Robert
    Link to this post
    detailed log:

    ValueFactory attempted to access the Value property of this instance.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: System.InvalidOperationException: ValueFactory attempted to access the Value property of this instance.

    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: 

    [InvalidOperationException: ValueFactory attempted to access the Value property of this instance.]
    System.Lazy`1.CreateValue() +14389240
    System.Lazy`1.LazyInitValue() +476
    Telerik.Sitefinity.Configuration.ConfigElementLazyItem`1.get_Element() +100
    Telerik.Sitefinity.Configuration.ConfigElementDictionary`2.TryGetValueInternal(TKey key, TElement& element) +69
    Telerik.Sitefinity.Configuration.ConfigElementDictionary`2.GetElementByKey(String key) +126
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadCollectionElement(ConfigElementCollection collection, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +931
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +323
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadPropertyElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +545
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +355
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadCollectionElement(ConfigElementCollection collection, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +1138
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +323
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadPropertyElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +545
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +355
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromReader(ConfigSection section, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean checkForUpgrade, UpgradingInfo& upgradingInfo) +439
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromFile(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName, Boolean withUpgrade) +138
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName) +82
    Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy) +315
    Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider) +30
    Telerik.Sitefinity.Configuration.Config.GetSectionInternal(Type sectionType, Boolean safeMode) +267
    Telerik.Sitefinity.Configuration.Config.GetSectionPrivate(Boolean safeMode) +239
    Telerik.Sitefinity.Modules.DefinitionsHelper.GetSortingExpressionSettings(Type type, Boolean isCustom) +191
    Telerik.Sitefinity.Taxonomies.HierarchicalTaxonDefinitions.DefineToolbar(MasterGridViewElement gridView) +1473
    Telerik.Sitefinity.Taxonomies.HierarchicalTaxonDefinitions.DefineHierarchicalTaxonsBackendListView(ContentViewControlDefinitionFacade fluentContentView) +673
    Telerik.Sitefinity.Configuration.<>c__DisplayClass1.<AddLazyInternal>b__0() +24
    System.Lazy`1.CreateValue() +14389240
    System.Lazy`1.LazyInitValue() +476
    Telerik.Sitefinity.Configuration.ConfigElementLazyItem`1.get_Element() +100
    Telerik.Sitefinity.Configuration.ConfigElementDictionary`2.TryGetValueInternal(TKey key, TElement& element) +69
    Telerik.Sitefinity.Configuration.ConfigElementDictionary`2.GetElementByKey(String key) +126
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadCollectionElement(ConfigElementCollection collection, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +931
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +323
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadPropertyElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +545
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +355
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadCollectionElement(ConfigElementCollection collection, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +1138
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +323
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadPropertyElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +545
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +355
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromReader(ConfigSection section, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean checkForUpgrade, UpgradingInfo& upgradingInfo) +439
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromFile(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName, Boolean withUpgrade) +138
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName) +82
    Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy) +315
    Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider) +30
    Telerik.Sitefinity.Configuration.Config.GetSectionInternal(Type sectionType, Boolean safeMode) +267
    Telerik.Sitefinity.Configuration.Config.GetSectionPrivate(Boolean safeMode) +239
    Telerik.Sitefinity.Modules.DefinitionsHelper.GetSortingExpressionSettings(Type type, Boolean isCustom) +191
    Telerik.Sitefinity.Modules.Libraries.Images.ImagesDefinitions.DefineBackendListView(ConfigElement parent, String viewName, ContentViewControlDefinitionFacade fluentContentView) +2611
    Telerik.Sitefinity.Modules.Libraries.Images.<>c__DisplayClass12.<DefineBackendContentView>b__c() +89
    System.Lazy`1.CreateValue() +14389240
    System.Lazy`1.LazyInitValue() +476
    Telerik.Sitefinity.Configuration.ConfigElementLazyItem`1.get_Element() +100
    Telerik.Sitefinity.Configuration.ConfigElementDictionary`2.TryGetValueInternal(TKey key, TElement& element) +69
    Telerik.Sitefinity.Configuration.ConfigElementDictionary`2.GetElementByKey(String key) +126
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadCollectionElement(ConfigElementCollection collection, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +931
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +323
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadPropertyElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +545
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +355
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadCollectionElement(ConfigElementCollection collection, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +1138
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +323
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadPropertyElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +545
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +355
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromReader(ConfigSection section, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean checkForUpgrade, UpgradingInfo& upgradingInfo) +439
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromFile(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName, Boolean withUpgrade) +138
    Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName) +82
    Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy) +315
    Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider) +30
    Telerik.Sitefinity.Configuration.Config.GetSectionInternal(Type sectionType, Boolean safeMode) +267
    Telerik.Sitefinity.Configuration.Config.GetSectionPrivate(Boolean safeMode) +239
    Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute..cctor() +17

    [TypeInitializationException: The type initializer for 'Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute' threw an exception.]
    Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute..ctor() +0
    BuildUp_Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute(IBuilderContext ) +116
    Telerik.Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +304
    Telerik.Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +434
    Telerik.Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +440

    [ResolutionFailedException: Resolution of the dependency failed, type = "Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute", name = "(none)".
    Exception occurred while: Calling constructor Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute().
    Exception is: TypeInitializationException - The type initializer for 'Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute' threw an exception.
    -----------------------------------------------
    At the time of the exception, the container was:

    Resolving Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute,(none)
    Calling constructor Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute()
    ]
    Telerik.Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +546
    Telerik.Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, String name, IEnumerable`1 resolverOverrides) +20
    Telerik.Microsoft.Practices.Unity.UnityContainerExtensions.Resolve(IUnityContainer container, ResolverOverride[] overrides) +87
    Telerik.Sitefinity.Modules.Libraries.LibrariesModule.Initialize(ModuleSettings settings) +672
    Telerik.Sitefinity.Services.SystemManager.InitializeModule(ModuleSettings settings, InstallContext installContext, Nullable`1 start, Boolean skipLoading) +1055
    Telerik.Sitefinity.Services.SystemManager.Initialize() +1264
    Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes() +667
    Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +444
    Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +116
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +530
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

    [HttpException (0x80004005): Resolution of the dependency failed, type = "Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute", name = "(none)".
    Exception occurred while: Calling constructor Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute().
    Exception is: TypeInitializationException - The type initializer for 'Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute' threw an exception.
    -----------------------------------------------
    At the time of the exception, the container was:

    Resolving Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute,(none)
    Calling constructor Telerik.Sitefinity.Modules.Libraries.Web.LibraryRoute()
    ]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12881540
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12722601
  3. Chanan Zass
    Chanan Zass avatar
    123 posts
    Registered:
    21 Aug 2012
    24 Jul 2013 in reply to Robert
    Link to this post
    Hi,

    Getting the same error with Sitefinity 6.0 after trying to add a user profile type.
    Have you solved this issue?

    Thanks.
  4. Robert
    Robert avatar
    70 posts
    Registered:
    05 Feb 2009
    24 Jul 2013 in reply to Chanan Zass
    Link to this post
    Hi,
    not yet, but I realized, that I upgraded from 5.3 straight to 6.1 and according to documentation I should have gone through 6.0 version. So today I'm going to include 6.0 and write here on whats new.
  5. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    21 Nov 2016
    24 Jul 2013
    Link to this post
    Hi all,

    First of all I want to note that upgrading directly for Sitefinity 5.3 to Sitefinity 6.1 is not supported. You need to go through the following upgrade path: 5.3 » 6.0 » 6.1. More information could be found in our Sitefinity upgrade documentation section.

    Regarding the error you are getting, we have answered you on the support ticket you have submitted. For your convenience I'm pasting ti below as well:

    I believe the problem is related to a bug that has been logged for fixing. It lay in the fact that Sitefinity is trying to load the lazy views upon site initialization. 

     Currently the workaround would be to edit your ContentViewConfig.config and search for the  <config:lazy> entry the HierarchicalTaxonBackendList has created there - please remove it from the file, save it and restart the application.

    Please excuse us for the inconvenience caused! I guarantee you that we'll be working on a resolution to the problem with highest priority.

    Regards,
    Stefani Tacheva
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  6. Chanan Zass
    Chanan Zass avatar
    123 posts
    Registered:
    21 Aug 2012
    24 Jul 2013 in reply to Stefani Tacheva
    Link to this post
    Many thanks.
    This workaround did it.
  7. Robert
    Robert avatar
    70 posts
    Registered:
    05 Feb 2009
    24 Jul 2013 in reply to Stefani Tacheva
    Link to this post
    I can confirm that it works as well. Thanks.
7 posts, 1 answered