Hello,
I'm trying to call a WS in my plugin, a simple GET query, but i'm getting always the following error message
Unhandled Exception:
The type of the first permission that failed was:
System.Security.Permissions.SecurityPermission
The demand was for:
<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=xx"
version="1"
Flags="Assertion"/>
I tried to add
[System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Assert, Unrestricted = true)] but it didn't help
I'm online, sandbox isolation mode.
my code is
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = "GET";
response = request.GetResponse();
Any idea please?
Thank you
*This post is locked for comments
I have the same question (0)