I have written a piece of c# code to send an email through exchange server using async and wait. After sending the mail and getting the response the automation should carry out its work/code written after that. While the solution is working perfectly in Pega studio, it is not working in Pega runtime. In runtime the mail is being sent properly, i ma receiving the mail but the robot gets stuck there without any advances in its flow. Can somebody suggest what is the possible error?
I am attaching the c# code and the automation I have build.