Hi,
We upgraded the one identity manager from 8.0 to 8.1.3 and getting error in custom module of password web portal.
Post upgrade we are getting below error-
Error code: CS0120; Error description: ccc_Test.cs(1238,13): An object reference is required for the non-static field, method, or property 'VI.WebRuntime.ServiceConnection.Get()' (CS0120); Node: ; Property: ; Module: ccc_Test; Project name: QER_PasswordWeb; Compiler: CSharp
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Customization is in password query as it was requirement to have 3 password queries for users to reset password from password reset portal. So we are storing them in customeproperty01 to coutomeproperty6(3 queries and 3 ans).
We have defined the pre-defined sql queried in designer to fetch these queries and answer. Theses pre-defined sql queries are getting called in code literal as below-
var vars = _UserSession.SessionModule.TableStore.GetTable("SessionVar");
var accountName = vars.GetColumn("AccountName").GetValue(vars.First()).String;
var numb = vars.GetColumn("num").GetValue(vars.First()).String;
if(numb=="1")
{
var q = await VI.WebRuntime.ServiceConnection.Get().Session.GetLimitedSqlScalarAsync<string>("CCC_Person_GetPasswordQuery1", new []{ new QueryParameter("CentralAccount", ValType.String, accountName)}, _cx).ConfigureAwait(false);
vars.GetColumn("PasswordQuery").SetValue(vars.First(), q);
}