A SocketPermission setting is required for the Connection object ConnectToServer function in .NET targets.
Connection object function | Permission required |
---|---|
ConnectToServer | Connect |
<IPermission class="System.Net.SocketPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1"> <ConnectAccess> <ENDPOINT host="10.42.144.40" transport="Tcp" port="2000"/> </ConnectAccess> </IPermission>
<IPermission class="SocketPermission" version="1"> <ConnectAccess> <ENDPOINT host="10.42.144.40" transport="Tcp" port="2000"/> </ConnectAccess> </IPermission>