I m loading .dll from lan network which sends web request. Dll is called from cpp application. When i call the dll from network it throw error as below
Request for the permission of type 'System.Net.WebPermission, System, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at the time of web request.
if i use caspol for setting full trust it works fine.
How shall i set full trust programatically in cpp.