Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

WS call Dynamics V9 online permissions plugin

$
0
0

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



Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images