盛派 用ComponentContainer.TryGetPreAuthCodeAsync生成预授权码报错

Senparc.Weixin.Open是盛派的微信第三方平台sdk,我在用它接入小程序第三方管理的时候,
ComponentContainer.TryGetPreAuthCodeAsync是用来生成预授权码的。但是入参没问题的情况下报错了。
报错信息
"msg": "The type initializer for 'Nested' threw an exception.",
"msgDetail": "   at Senparc.CO2NET.Cache.LocalObjectCacheStrategy.get_Instance()\n   at Senparc.CO2NET.Cache.CacheStrategyFactory.GetObjectCacheStrategyInstance()\n   at Senparc.CO2NET.Cache.CacheStrategyFactory.GetExtensionCacheStrategyInstance(ICacheStrategyDomain cacheStrategyDomain)\n   at Senparc.Weixin.Cache.ContainerCacheStrategyFactory.GetContainerCacheStrategyInstance()\n   at Senparc.Weixin.Containers.BaseContainer`1.get_Cache()\n   at Senparc.Weixin.Containers.BaseContainer`1.CheckRegisteredAsync(String shortKey)\n   at Senparc.Weixin.Open.Containers.ComponentContainer.TryRegisterAsync(String componentAppId, String componentAppSecret, Boolean getNewToken, String name)\n   at Senparc.Weixin.Open.Containers.ComponentContainer.TryGetPreAuthCodeAsync(String componentAppId, String componentAppSecret, Boolean getNewToken)\n

阅读 164
评论
    0 个回答
    撰写回答

    登录后参与交流、获取后续更新提醒

    相似问题
    推荐文章