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

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


Thanks
Posted

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!
 
Share this answer
 

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