在實際運行中,好好運行的程式出現了以下問題:
2019-12-27 10:40:00,164 [DefaultQuartzScheduler_Worker-2] ERROR IBeam.BCPool.Objects.CloudPowerIncome [(null)] - AutoSynchronizeIncomeFromPoolAPI CloudPowerPriceID=8155-c0a6ff2c7179,SequenceNo=CP_20191216_0001,Name=標準算力R1(立即生效),MaxPower=27.0000000000,MinerPoolName=BTC.Com,ViewLink=19w9ikPdGopjh3xQY9KpRTmUFTLTCAr25u,Error=System.InvalidOperationException: One or more properties are not registered for this type ---> System.IndexOutOfRangeException: 索引超出了陣列界限,
在 Csla.Core.FieldManager.FieldDataManager.GetFieldData(IPropertyInfo propertyInfo)
--- 內部例外堆疊跟蹤的結尾 ---
在 Csla.Core.FieldManager.FieldDataManager.GetFieldData(IPropertyInfo propertyInfo)
在 Csla.Core.BusinessBase.ReadProperty[P](PropertyInfo`1 propertyInfo)
在 Csla.Core.BusinessBase.GetProperty[P](PropertyInfo`1 propertyInfo, NoAccessBehavior noAccess)
在 Csla.Core.BusinessBase.GetProperty[P](PropertyInfo`1 propertyInfo)
在 IBeam.BCPool.Objects.CloudPowerPrice.get_WalletAddress()
在 IBeam.BCPool.Objects.CloudPowerPrice.GetQueryArgs()
在 IBeam.BCPool.Objects.CloudPowerIncome.AutoSynchronizeIncomeFromPoolAPI(CloudPowerPrice price, DateTime date)
仔細檢查類的定義代碼,發現沒有問題啊?但實際運行卻不行,之前也出現過 CloudPowerPrice.Name 上出現過這個問題,最終確認是這樣的,
在同一臺物理服務器上部署了 兩個以上不同的應用,但類別庫的版本不一致,新運行的行程獲取類定義 元資料時,總是取了之前加載的類定義,更新類定義后,問題解決,
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/86450.html
標籤:C#
