Hi,
I am trying to use the 'AxInterop.MSTSCLib' and create a RDP Session in a C# Winfroms Application.
The issue I am facing is especially with the LoadBalanceInfo which is available in the 'AdvancedSettings2.LoadBalanceInfo', as I need to send RDP Routing information as a part of the connection request. The issue is the Connect() method just stits there trying to connect even after 10 mins.
When I try this as a normal .rdp file and open it using the "Remote Desktop Connection" available in Windows, I am able to connect.
So, I have done a network trace on both the tools the Remote Dektop Connection tool in Windows and also the request that my code was sending and I see the following difference.
Windows RDP :
0000 00 22 3f 52 28 ba 00 24 d6 28 ea 30 08 00 45 00 ."?R(..$ .(.0..E.
0010 00 5e 35 22 40 00 80 06 db 73 c0 a8 00 0b 41 34 .^5"@... .s....A4
0020 e8 1c e0 f1 0d 3d b7 f0 c9 ef 2a b7 b5 d7 50 18 .....=.. ..*...P.
0030 00 44 91 2e 00 00 03 00 00 36 31 e0 00 00 00 00 .D...... .61.....
0040 00 43 6f 6f 6b 69 65 3a 20 6d 73 74 73 68 61 73 .Cookie: mstshas
0050 68 3d 52 44 53 43 48 23 52 44 53 43 48 5f 49 4e h=RDSCH# RDSCH_IN
0060 5f 30 0d 0a 01 00 08 00 03 00 00 00 _0...... ....
My Code :
0000 00 22 3f 52 28 ba 00 24 d6 28 ea 30 08 00 45 00 ."?R(..$ .(.0..E.
0010 00 7d 31 b5 40 00 80 06 de c1 c0 a8 00 0b 41 34 .}1.@... ......A4
0020 e8 1c e0 c5 0d 3d ee cc 6b 83 a7 23 63 5f 50 18 .....=.. k..#c_P.
0030 00 44 13 2f 00 00 03 00 00 55 50 e0 00 00 00 00 .D./.... .UP.....
0040 00 43 00 6f 00 6f 00 6b 00 69 00 65 00 3a 00 20 .C.o.o.k .i.e.:.
0050 00 6d 00 73 00 74 00 73 00 68 00 61 00 73 00 68 .m.s.t.s .h.a.s.h
0060 00 3d 00 52 00 44 00 53 00 43 00 48 00 23 00 52 .=.R.D.S .C.H.#.R
0070 00 44 00 53 00 43 00 48 00 5f 00 49 00 4e 00 5f .D.S.C.H ._.I.N._
0080 00 30 00 01 00 08 00 00 00 00 00 .0...... ...
Could be some encoding issue or something. Can Any one help me how to send the LoadBalanceInfo along with my request?
Thanks & Regards.
-Kiran Grandhe.