本文介绍了组件Commerce.PaymentMethodCache中缓存刷新期间失败:Hresult:0x80131509请求的性能计数器不是自定义计数器,必须初始化为ReadOnly的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在Commerce Server 2007启动站点中收到此错误:


组件Commerce.PaymentMethodCache中缓存刷新期间失败:Hresult:0x80131509请求的性能计数器不是自定义计数器,必须初始化为ReadOnly





Diegolo



'/'应用程序中的服务器错误。



组件Commerce.PaymentMethodCache中缓存刷新期间失败:Hresult:0x80131509请求的性能计数器不是自定义计数器,必须初始化为ReadOnly。


描述: 执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。


$
异常详细信息: System.InvalidOperationException:组件中的缓存刷新期间失败Commerce.PaymentMethodCache:Hresult:0x80131509请求的性能计数器不是自定义计数器,必须初始化为ReadOnly。



源错误:






在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。



堆栈追踪:







 [InvalidOperationException:组件Commerce.PaymentMethodCache中的缓存刷新期间失败:Hresult :0x80131509请求的性能计数器不是自定义计数器,必须初始化为ReadOnly。] 
Microsoft.CommerceServer.Interop.Caching.CacheManagerClass.GetCache(String bstrName)+0
Microsoft.CommerceServer。 Runtime.Caching.CommerceCache.GetCache()+ 143
Microsoft.CommerceServer.Runtime.Caching.CommerceCacheModule.BuildCacheCollection()+ 1425
Microsoft.CommerceServer.Runtime.Caching.CommerceCacheModule.Init(HttpApplication appInstance)+ 157
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appConte xt,HttpContext上下文,MethodInfo []处理程序)+575
System.Web.HttpApplication.InitSpecial(HttpApplicationState状态,MethodInfo []处理程序,IntPtr appContext,HttpContext上下文)+352
System.Web.HttpApplicationFactory。 GetSpecialApplicationInstance(IntPtr appContext,HttpContext context)+407
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)+375

[HttpException(0x80004005):组件商务中缓存刷新期间失败.PaymentMethodCache:Hresult:0x80131509请求的性能计数器不是自定义计数器,必须初始化为ReadOnly。]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context)+11700896
System.Web。 HttpRuntime.EnsureFirstRequestInit(HttpContext context)+141
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext context)+4869125







版本信息: Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.0.30319.272 


解决方案

getting this error in Commerce server 2007 starter site:

Failure during cache refresh in component Commerce.PaymentMethodCache: Hresult: 0x80131509 The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly


Diegolo

Server Error in '/' Application.

Failure during cache refresh in component Commerce.PaymentMethodCache: Hresult: 0x80131509 The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.

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: Failure during cache refresh in component Commerce.PaymentMethodCache: Hresult: 0x80131509 The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.

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: Failure during cache refresh in component Commerce.PaymentMethodCache:  Hresult: 0x80131509 The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.]
   Microsoft.CommerceServer.Interop.Caching.CacheManagerClass.GetCache(String bstrName) +0
   Microsoft.CommerceServer.Runtime.Caching.CommerceCache.GetCache() +143
   Microsoft.CommerceServer.Runtime.Caching.CommerceCacheModule.BuildCacheCollection() +1425
   Microsoft.CommerceServer.Runtime.Caching.CommerceCacheModule.Init(HttpApplication appInstance) +157
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +575
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375

[HttpException (0x80004005): Failure during cache refresh in component Commerce.PaymentMethodCache:  Hresult: 0x80131509 The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11700896
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4869125



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

解决方案


这篇关于组件Commerce.PaymentMethodCache中缓存刷新期间失败:Hresult:0x80131509请求的性能计数器不是自定义计数器,必须初始化为ReadOnly的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 05:55