When I deploy the latest cumulative patch "K2 Five (5.3) January 2022 Cumulative Update" in my local "K2 Five 5.3" environment, the K2 log files do not have any errors after the deployment in the test environment.
However, after the deployment of the production environment is completed, the following error records will continue to appear:
"1140699492","2022-01-29 19:26:05","Error","SmartObjects","10702","Error","SourceCode.SmartObjects.ServiceBroker [ExecuteSmartObject]","10702 An error occurred in the WebAPISettings Service Instance. System.TypeInitializationException: The type initializer for 'SourceCode.SmartObjects.Services.WebApiSettings.WebApiSettingsJsonSerializerEndpointFormatter' threw an exception. ---> System.MissingMethodException: Method not found: 'Void SourceCode.SmartObjects.Services.Endpoints.Common.JsonSerializerEndpointFormatter..ctor(Boolean, System.Reflection.Assembly)'.
at SourceCode.SmartObjects.Services.WebApiSettings.WebApiSettingsJsonSerializerEndpointFormatter..ctor()
at SourceCode.SmartObjects.Services.WebApiSettings.WebApiSettingsJsonSerializerEndpointFormatter..cctor()
--- End of inner exception stack trace ---
at SourceCode.SmartObjects.Services.WebApiSettings.Broker.Execute()
at SourceCode.SmartObjects.Services.ServiceSDK.ServiceAssemblyBase.SpecialExecute(Int32 indexOfSO, Byte[] serviceObjectBufferIn, Boolean doPaging, Int32 pageNumber, Int32 pageSize, Int32 startRecord, Int32 maxRecords, Boolean includeTotalRecordCount, Dictionary`2 orderBy)
at SourceCode.SmartObjects.ServiceBroker.Broker.<>c__DisplayClass115_0.<ExecuteSmartObject>b__0(IReliableDbTransaction tran)","anonymous","0.0.0.0","CNXMNAPP07:C:Program Files (x86)K2 blackpearlHost ServerBin","1140699492","8a45e9d02016470ab477bb878db56fd0",""
"1140699494","2022-01-29 19:26:05","Error","SmartObjects","10702","Error","SourceCode.SmartObjects.ServiceBroker [ExecuteSmartObject]","10702 Retrying the WebAPISettings Service Instance as the K2 Service Account did not resolve the issue. System.TypeInitializationException: The type initializer for 'SourceCode.SmartObjects.Services.WebApiSettings.WebApiSettingsJsonSerializerEndpointFormatter' threw an exception. ---> System.MissingMethodException: Method not found: 'Void SourceCode.SmartObjects.Services.Endpoints.Common.JsonSerializerEndpointFormatter..ctor(Boolean, System.Reflection.Assembly)'.
at SourceCode.SmartObjects.Services.WebApiSettings.WebApiSettingsJsonSerializerEndpointFormatter..ctor()
at SourceCode.SmartObjects.Services.WebApiSettings.WebApiSettingsJsonSerializerEndpointFormatter..cctor()
--- End of inner exception stack trace ---
at SourceCode.SmartObjects.Services.WebApiSettings.Broker.Execute()
at SourceCode.SmartObjects.Services.ServiceSDK.ServiceAssemblyBase.SpecialExecute(Int32 indexOfSO, Byte[] serviceObjectBufferIn, Boolean doPaging, Int32 pageNumber, Int32 pageSize, Int32 startRecord, Int32 maxRecords, Boolean includeTotalRecordCount, Dictionary`2 orderBy)
at SourceCode.SmartObjects.ServiceBroker.Broker.<>c__DisplayClass115_0.<ExecuteSmartObject>b__0(IReliableDbTransaction tran)","anonymous","0.0.0.0","CNXMNAPP07:C:Program Files (x86)K2 blackpearlHost ServerBin","1140699494","288caee671b94b16968fad4c0c271a40",""
Judging from the error, it should be related to the built-in "WebAPISettings Service Instance" of K2, and I tried to refresh this service manually.
The following are the manual test records before and after the upgrade:
Before upgrade:
Refresh passes without any errors.
After upgrade:
I tried to deploy in other environments, and the same error occurs. Will this error affect the normal operation of K2? And how to solve this problem?
Thank you so much!