External App template:
Command: C:\Program Files\ShrewSoft\VPN Client\ipsecc.exe
Arguments: -r $CustomField1$ -u $EffectiveUsername$ -p $EffectivePassword$ -a
Working dir: "C:\Program Files\ShrewSoft\VPN Client"
Where CustomField1 is VPN Profile name in shrewsoft
Embedded in main windows would be great but it does not work in this method.
Some connection works othesr give an error after some seconds:
If i click ok it close the VPN Client.
I see you are using external apps for your VPN client. External apps by default try to embed the main window of the process. Depending on how the VPN client is written (like starting a subsequent process), the message you see indicates that Royal TS cannot find an embeddable main window handle. It's hard to tell why this is happening without knowing the internals of the VPN client.
In addition, most of our users are using command tasks for VPN clients. In some scenarios it can be helpful to use those tasks as connect/disconnect task in a connection to ensure the VPN is available when the connection is initiated. Command tasks also do not embed the started applications in a tab.