Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 21489

C# LoadBalance info setting issue..

$
0
0

First of all, My English is very very not good..

I Developing Windows Remote Desktop used by MSTSCLib..

Problem is connect to remote application.

I set "AdvancedSetting2.LoadBalanceInfo = str"

Before set

            string lb = rdpInfo.LoadbalanceInfo;

            if (lb.Length % 2 == 1) lb += " ";
            lb += "\r\n";

            byte[] b = Encoding.UTF8.GetBytes(lb);

string final = final = Encoding.Unicode.GetString(b);

If string lb is odd number bytes add " ". Even number bytes is working! But odd bytes is not working..

The reason is " "(blank). I print packet used by WireShark .

"\r\n"(0d 0a) after packet "20" add! So I did not connected server..

What should i do??



Viewing all articles
Browse latest Browse all 21489

Trending Articles