csharp icon indicating copy to clipboard operation
csharp copied to clipboard

Unhandled exception. System.TypeLoadException: Method 'get_Count' in type 'System.Runtime.Caching.Configuration.MemoryCacheSettingsCollection' from assembly 'System.Runtime.Caching, Version=4.0.0.0,

Open imclint21 opened this issue 3 months ago • 0 comments

Hi,

Just got this:

 23:17:05 hcu manager[2661538]: Unhandled exception. System.TypeLoadException: Method 'get_Count' in type 'System.Runtime.Caching.Configuration.MemoryCacheSettingsCollection' from assembly 'System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation.
Oct 13 23:17:05 hcu manager[2661538]:    at System.Runtime.Caching.MemoryCacheStatistics.InitializeConfiguration(NameValueCollection config)
Oct 13 23:17:05 hcu manager[2661538]:    at System.Runtime.Caching.MemoryCacheStatistics..ctor(MemoryCache memoryCache, NameValueCollection config)
Oct 13 23:17:05 hcu manager[2661538]:    at System.Runtime.Caching.MemoryCache.InitDisposableMembers(NameValueCollection config)
Oct 13 23:17:05 hcu manager[2661538]:    at System.Runtime.Caching.MemoryCache.Init(NameValueCollection config)
Oct 13 23:17:05 hcu manager[2661538]:    at System.Runtime.Caching.MemoryCache..ctor(String name, NameValueCollection config)
Oct 13 23:17:05 hcu manager[2661538]:    at IPinfo.Cache.CacheWrapper.InitMemoryCache(CacheConfigurations config)
Oct 13 23:17:05 hcu manager[2661538]:    at IPinfo.Cache.CacheWrapper..ctor(CacheConfigurations config)
Oct 13 23:17:05 hcu manager[2661538]:    at IPinfo.Cache.CacheWrapper..ctor()
Oct 13 23:17:05 hcu manager[2661538]:    at IPinfo.Cache.CacheHandler..ctor()
Oct 13 23:17:05 hcu manager[2661538]:    at IPinfo.IPinfoClientLite.Builder..ctor()

And for information I use:

private readonly IPinfoClientLite _ipInfoClient = new IPinfoClientLite.Builder()
		.AccessToken(thirdPartyServicesOptions.CurrentValue.IpInfoApiKey)
		.Build();

imclint21 avatar Oct 13 '25 21:10 imclint21