This might help you:
It seems there is some issue in windows.
You can update Microsoft.Activities.Extension to lower version and try.
Alternative is to replace add to dictionary with following assign.
out_Config(row(“Key”).ToString) = “desired value”