I am looking into your sample now. I had to commend out SeesionBegin and SessionEnd DateTimes variables to compile as I was getting a compiler error in order to compile the code, do you have the same error on your side?
I look forward to assisting you further.

Comment