locked
Windows server 2008 : error- Unable to create the store directory. (Exception from HRESULT: 0x80131468) RRS feed

  • Question

  • User-1163549808 posted

    My application was working fine until I have migrated to windows server 2008.  I am having the error message:

    Unable to create the store directory. (Exception from HRESULT: 0x80131468)

    Stack Trace:
    
    
    [IsolatedStorageException: Unable to create the store directory. (Exception from HRESULT: 0x80131468)]
       System.IO.IsolatedStorage.IsolatedStorageFile.GetRootDir(IsolatedStorageScope scope, StringHandleOnStack retRootDir) +0
       System.IO.IsolatedStorage.IsolatedStorageFile.InitGlobalsNonRoamingUser(IsolatedStorageScope scope) +324
       System.IO.IsolatedStorage.IsolatedStorageFile.GetGlobalFileIOPerm(IsolatedStorageScope scope) +508
       System.IO.IsolatedStorage.IsolatedStorageFile.Init(IsolatedStorageScope scope) +159
       System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType) +87
       Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore.Initialize() +24
       Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore..ctor(String storageAreaName, IStorageEncryptionProvider encryptionProvider) +170
       BuildUp_Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore(IBuilderContext ) +463
       Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +304
       Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +434
       Microsoft.Practices.ObjectBuilder2.BuilderContext.NewBuildUp(NamedTypeBuildKey newBuildKey) +318
       BuildUp_Microsoft.Practices.EnterpriseLibrary.Caching.Cache(IBuilderContext ) +220
       Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +304
       Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +434
       Microsoft.Practices.ObjectBuilder2.BuilderContext.NewBuildUp(NamedTypeBuildKey newBuildKey) +318
       BuildUp_Microsoft.Practices.EnterpriseLibrary.Caching.CacheManager(IBuilderContext ) +220
       Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +304
       Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +434
       Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +440
    
    [ResolutionFailedException: Resolution of the dependency failed, type = "Microsoft.Practices.EnterpriseLibrary.Caching.ICacheManager", name = "Persistent Cache Manager".
    Exception occurred while: Calling constructor Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore(System.String storageAreaName, Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IStorageEncryptionProvider encryptionProvider).
    Exception is: IsolatedStorageException - Unable to create the store directory. (Exception from HRESULT: 0x80131468)
    -----------------------------------------------
    At the time of the exception, the container was:
    
      Resolving Microsoft.Practices.EnterpriseLibrary.Caching.CacheManager,Persistent Cache Manager (mapped from Microsoft.Practices.EnterpriseLibrary.Caching.ICacheManager, Persistent Cache Manager)
      Resolving parameter "realCache" of constructor Microsoft.Practices.EnterpriseLibrary.Caching.CacheManager(Microsoft.Practices.EnterpriseLibrary.Caching.Cache realCache, Microsoft.Practices.EnterpriseLibrary.Caching.BackgroundScheduler backgroundScheduler, Microsoft.Practices.EnterpriseLibrary.Caching.ExpirationPollTimer pollTimer)
        Resolving Microsoft.Practices.EnterpriseLibrary.Caching.Cache,Persistent Cache Manager
        Resolving parameter "backingStore" of constructor Microsoft.Practices.EnterpriseLibrary.Caching.Cache(Microsoft.Practices.EnterpriseLibrary.Caching.IBackingStore backingStore, Microsoft.Practices.EnterpriseLibrary.Caching.Instrumentation.ICachingInstrumentationProvider instrumentationProvider)
          Resolving Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore,persistent (mapped from Microsoft.Practices.EnterpriseLibrary.Caching.IBackingStore, persistent)
          Calling constructor Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore(System.String storageAreaName, Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IStorageEncryptionProvider encryptionProvider)
    ]
       Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +546
       Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, String name, IEnumerable`1 resolverOverrides) +20
       Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key) +70
    
    [ActivationException: Activation error occured while trying to get instance of type ICacheManager, key "Persistent Cache Manager"]
       Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key) +181
       Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(String key) +63
       Microsoft.Practices.EnterpriseLibrary.Caching.CacheFactory.InnerGetCacheManager(String cacheManagerName) +170
       Twenty57.HotHouse.MvcUI.State.PersistentCache.GetCacheManager() in C:\Dev\Code\MvcUI\State\PersistentCache.cs:38
       Twenty57.HotHouse.MvcUI.State.PersistentCache.Get(String key) in C:\Dev\Code\MvcUI\State\PersistentCache.cs:23
       Twenty57.HotHouse.MvcUI.Services.UserServices.TrySetProjectToLastSelectedProject(User user) in C:\Dev\Code\MvcUI\Services\UserServices.cs:72
       Twenty57.HotHouse.MvcUI.Services.UserServices.InitializeCache() in C:\Dev\Code\MvcUI\Services\UserServices.cs:51
       Twenty57.HotHouse.MvcUI.MvcApplication.Application_OnPreRequestHandlerExecute(Object sender, EventArgs e) in C:\Dev\Code\MvcUI\Global.asax.cs:87
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270
    

    I  want to  grant at least Modify permissions for the Network Service account to "C:\Documents and Settings\Default User\Local Settings\Application Data\IsolatedStorage"  as per http://stackoverflow.com/questions/3242102/a-cause-for-hresult-0x80131468-when-accessing-isolatedstoragebackingstore?rq=1.  But I am having denied access to the Documents and settings folder as I am uisng Windows server 2008. 

    What is this error all about and how can I solve it?

     

    Thursday, July 26, 2012 4:50 AM

All replies

  • User-851967432 posted

    Have you tried running the application as administrator?

    Thursday, July 26, 2012 10:32 AM