获取Token信息-GetToken发生异常。System.TypeInitializationException: “Lottomat.Cache.Factory.CacheFactory”的类型初始值设定项引发异常。 ---> System.NullReferenceException: 未将对象引用设置到对象的实例。 在 Lottomat.Util.ConfigHelper.GetValue(String key) 位置 F:\VS2017Workspace\Lottomat\Lottomat.Util\Lottomat.Util\Config\ConfigHelper.cs:行号 16 在 Lottomat.Cache.Factory.CacheFactory..cctor() 位置 F:\VS2017Workspace\Lottomat\Lottomat.Cache\Lottomat.Cache.Factory\CacheFactory.cs:行号 19 --- 内部异常堆栈跟踪的结尾 --- 在 Lottomat.Cache.Factory.CacheFactory.Cache() 在 Lottomat.SOA.API.Controllers.OAuthController.<>c__DisplayClass0_0.b__0() 位置 F:\VS2017Workspace\Lottomat\Lottomat.SOA.API\Controllers\OAuthController.cs:行号 72 在 Lottomat.Util.Log.LogHelper.Logger(Type type, String function, ErrorHandel errorHandel, Action tryHandel, Action`1 catchHandel, Action finallHandel) 位置 F:\VS2017Workspace\Lottomat\Lottomat.Util\Lottomat.Util.Log\LogHelper.cs:行号 71