Thanks Clayton. Appreciate your help. I figured that we should not persistently store user-pass into a dictionary during the tenure of the program. Instead we should use get credential to extract and login into the application and then discard. I am thinking, that may be the reason why “GetAppCredential.xaml” is a standalone program in the REFramework; so that it can be called only when needed.
While trying to fix my code I learnt something new…
Realized that the compiler is trying to convert the variable in the “Value” to the type of the argument variable (though its a 'Out" direction argument). Which is little weird. Since the variable in the “Value” is the final container of the object being transferred from the out variable.
We can bypass this issue by storing the out argument into a temporary variable (of the same type). and then assign the temporary variable to the dictionary.
Thanks again for your help. You have a very good day!