Click here to Skip to main content
15,041,025 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

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=, 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.


1 solution

I faced the similar problem.
The issue was with C++ DLL project which was on network.
I just, after much of RnD, copied the DLL project into local machine, and it worked!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900