Quantcast
Channel: Sam's Activities
Viewing all articles
Browse latest Browse all 3363

Dynamics 365 Plugin : How to call a web request

$
0
0

Hello everyone my name is Taniguchi.

I trying to retrieve information from itb360 database using a get request consuming an url but in the plugin when i try to get the response its shows me an error but i used the same code in console application and worked just fine do i have to do some configuration to be able to do webrequest in dynamics 365 plugin?

mycode:

Uri url = new Uri("">dbenterprise.itb360.com.br/.../28017459000117");

        WebRequest request = WebRequest.Create(url);
        request.Method = HttpMethod.Get.Method;
        var response = request.GetResponse();

the error on get response line:

System.Security.SecurityException HResult=0x8013150A Message=Falha na solicitação da permissão de tipo 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>