访问IsolatedStorageBackingStore时出现HRESULT 0X80131468的原因 [英] A Cause for HRESULT 0X80131468 when accessing IsolatedStorageBackingStore

查看:70
本文介绍了访问IsolatedStorageBackingStore时出现HRESULT 0X80131468的原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面临的情况是,我有一个W2k3服务器上运行的ASP.NET Web服务(.NET 3.5),该服务器使用CacheManager / IsolatedStorage存储来存储持久状态变量。在我们更换物理机之前,这种配置已经可以正常工作了一段时间了。现在,每当访问该值的代码运行时,它就会引发IsolatedStorageException(在下面发布)。据我了解,用户/程序集存储是正在访问的内容,执行用户是本地管理员组的成员。是否有人对缺少什么特权提出建议?

The scenario I am facing is that I have an ASP.NET web service (.NET 3.5) running on an W2k3 server which is using the CacheManager/IsolatedStorage store to store a persisted state variable. This configuration has been working fine for quite sometime until we changed the physical machine. Now whenver the code that accesses that value runs it throws an IsolatedStorageException (Posted below). As I understand it the user/assembly store is what is being accessed and the executing user is a member of the local administrators group. Does anyone have a suggestion as to what privilege is missing?

无法创建商店目录。 (来自HRESULT的异常:0x80131468)

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

类型:Microsoft.Practices.ObjectBuilder2.BuildFailedException。错误:当前的构建操作(构建密钥Build Key [Microsoft.Practices.EnterpriseLibrary.Caching.ICacheManager,缓存管理器])失败:无法创建存储目录。 (来自HRESULT的异常:0x80131468)(策略类型ConfiguredObjectStrategy,索引2)。跟踪:在Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext上下文)
在Microsoft.Practices.ObjectBuilder2.Builder.BuildUp(IReadWriteLocator定位器,ILifetimeContainer寿命,IPolicyList策略,IStrategyChain策略,对象buildKey,对象已存在)
,位于Microsoft.Practices.ObjectBuilder2.Builder.BuildUp [TTypeToBuild](IReadWriteLocator定位器,ILifetimeContainer生存期,IPolicyList策略,IStrategyChain策略,对象buildKey,对象已存在),
,位于Microsoft.Practices.EnterpriseLibrary.Common.Configuration。 ObjectBuilder.EnterpriseLibraryFactory.BuildUp [T](IReadWriteLocator定位器,ILifetimeContainer lifetimeContainer,IConfigurationSource配置源)Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.LocatorNameTypeFactoryBase 1.CreateDefault()
b在Microsoft.Practices.EnterpriseLibrary.Caching.CacheFactory.GetCacheManager()
在Ept.Commands.SettlementCommand.BeginSett c:\Projects\EPT\Ept.Framework.Services\Commands\SettlementCommand.cs:line 102中的lement()在c:\中Ept.Commands.SettlementCommand.ExecuteKernel(SettlementRequest request)处的$ 102
\项目\EPT\Ept.Framework.Services\Commands\SettlementCommand.cs:行188
在Ept.Command
2.Execute(TRequest request)in c:\项目\EPT\Ept.Framework.Services\Commands\Command.cs:第79行。ExecutingStrategyTypeName:ConfiguredObjectStrategy ExecutingStrategyIndex:2 BuildKey:构建键[Microsoft.Practices.EnterpriseLibrary.Caching.ICacheManager,缓存管理器]类型:系统.IO.IsolatedStorage.IsolatedStorageException。错误:无法创建商店目录。 (来自HRESULT的异常:0x80131468)。跟踪:在System.IO.IsolatedStorage.IsolatedStorageFile.nGetRootDir(IsolatedStorageScope范围)
在System.IO.IsolatedStorage.IsolatedStorageFile.InitGlobalsNonRoamingUser(IsolatedStorageScope范围)
在System.IO.IsolatedStorage.IsolatedStorageFile.GetRootDir(I作用域)System.IO.IsolatedStorage.IsolatedStorageFile.GetGlobalFileIOPerm(IsolatedStorageScope作用域)
System.IO.IsolatedStorage.IsolatedStorageFile.Init(IsolatedStorageScope作用域)
System.IO.IsolatedStorage.IsolatedStorageFile .GetStore(IsolatedStorageScope范围,类型domainEvidenceType,类型assemblyEvidenceType)
在Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore.Initialize()
在Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementated.I Microsoft.Practices.EnterpriseLibrary.Caching.Conf上的ctor(String storageAreaName,IStorageEncryptionProvider encryptionProvider)
iguration.IsolatedStorageBackingStoreAssembler.Assemble(IBuilderContext上下文,CacheStorageData对象配置,IConfigurationSource配置源,ConfigurationReflectionCache反射缓存)
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedObjectFactory 2.Create(IBuilderContext, Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedCustomFactory 2.Create(IBuilderContext上下文,字符串名称,IConfigurationSource配置源,ConfigurationReflectionCache ReflectionCache)
Microsoft的b $ b.Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.CacheManagerAssembler.Assemble(IBuilderContext上下文,CacheManagerDataBase objectConfiguration,IConfigurationSource configurationSource,ConfigurationReflectionCache ReflectionCache)Microsoft的b $ b .Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedObjectFactory 2.Create(IBuilderContext上下文,TConfiguration objectConfiguration,IConfigurationSource configurationSource,ConfigurationReflectionCache ReflectionCache)
在Microsoft.Practices.EnterpriseLibrary.Caching.CacheManagerCustomFactory.Create (IBuilderContext上下文,CacheManagerDataBase对象配置,IConfigurationSource配置源,ConfigurationReflectionCache反射缓存)
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedCustomFactory
2.Create(IBuilderContext上下文,字符串名称,IConfigurationSource配置源,ConfigurationReflectionCache ReflectionCache)
在Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedCustomFactory`2.CreateObject(IBuilderContext上下文,字符串名称,IConfigurationSource configurationSource,ConfigurationReflectionCache ReflectionCache)
在Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext上下文)处
在Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy.PreBuildUp(IBuilderContext上下文)

Type: Microsoft.Practices.ObjectBuilder2.BuildFailedException. Error: The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Caching.ICacheManager, Cache Manager]) failed: Unable to create the store directory. (Exception from HRESULT: 0x80131468) (Strategy type ConfiguredObjectStrategy, index 2). Trace: at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) at Microsoft.Practices.ObjectBuilder2.Builder.BuildUp(IReadWriteLocator locator, ILifetimeContainer lifetime, IPolicyList policies, IStrategyChain strategies, Object buildKey, Object existing) at Microsoft.Practices.ObjectBuilder2.Builder.BuildUp[TTypeToBuild](IReadWriteLocator locator, ILifetimeContainer lifetime, IPolicyList policies, IStrategyChain strategies, Object buildKey, Object existing) at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory.BuildUp[T](IReadWriteLocator locator, ILifetimeContainer lifetimeContainer, IConfigurationSource configurationSource) at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.LocatorNameTypeFactoryBase1.CreateDefault() at Microsoft.Practices.EnterpriseLibrary.Caching.CacheFactory.GetCacheManager() at Ept.Commands.SettlementCommand.BeginSettlement() in c:\Projects\EPT\Ept.Framework.Services\Commands\SettlementCommand.cs:line 102 at Ept.Commands.SettlementCommand.ExecuteKernel(SettlementRequest request) in c:\Projects\EPT\Ept.Framework.Services\Commands\SettlementCommand.cs:line 188 at Ept.Command2.Execute(TRequest request) in c:\Projects\EPT\Ept.Framework.Services\Commands\Command.cs:line 79. ExecutingStrategyTypeName: ConfiguredObjectStrategy ExecutingStrategyIndex: 2 BuildKey: Build Key[Microsoft.Practices.EnterpriseLibrary.Caching.ICacheManager, Cache Manager] Type: System.IO.IsolatedStorage.IsolatedStorageException. Error: Unable to create the store directory. (Exception from HRESULT: 0x80131468). Trace: at System.IO.IsolatedStorage.IsolatedStorageFile.nGetRootDir(IsolatedStorageScope scope) at System.IO.IsolatedStorage.IsolatedStorageFile.InitGlobalsNonRoamingUser(IsolatedStorageScope scope) at System.IO.IsolatedStorage.IsolatedStorageFile.GetRootDir(IsolatedStorageScope scope) at System.IO.IsolatedStorage.IsolatedStorageFile.GetGlobalFileIOPerm(IsolatedStorageScope scope) at System.IO.IsolatedStorage.IsolatedStorageFile.Init(IsolatedStorageScope scope) at System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType) at Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore.Initialize() at Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore..ctor(String storageAreaName, IStorageEncryptionProvider encryptionProvider) at Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.IsolatedStorageBackingStoreAssembler.Assemble(IBuilderContext context, CacheStorageData objectConfiguration, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache) at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedObjectFactory2.Create(IBuilderContext context, TConfiguration objectConfiguration, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache) at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedCustomFactory2.Create(IBuilderContext context, String name, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache) at Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.CacheManagerAssembler.Assemble(IBuilderContext context, CacheManagerDataBase objectConfiguration, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache) at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedObjectFactory2.Create(IBuilderContext context, TConfiguration objectConfiguration, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache) at Microsoft.Practices.EnterpriseLibrary.Caching.CacheManagerCustomFactory.Create(IBuilderContext context, CacheManagerDataBase objectConfiguration, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache) at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedCustomFactory2.Create(IBuilderContext context, String name, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache) at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedCustomFactory`2.CreateObject(IBuilderContext context, String name, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache) at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy.PreBuildUp(IBuilderContext context) at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context).

推荐答案

问题的根本原因在于,运行Web服务的帐户没有创建本地用户配置文件因此,用户程序集存储区不存在。简单的解决方法是使用服务帐户登录到该框。

The root cause of the issue is that the account which the web service was running under did not have a local user profile created thus the user assembly store didn't exist. The simple fix was just to logon to the box with the service account.

这篇关于访问IsolatedStorageBackingStore时出现HRESULT 0X80131468的原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆