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

Non-sanbox plugin throws Request for the permission of type System.Security.Permissions.EnvironmentPermission failed error

$
0
0

Hello,


We have a plugin which need to send some XML content to a web service. To frame this XML we need the machine name of where the plugin is executing (It could be any one of the application servers).

In CRM 2011, the same plugin used 'Environment.MachineName' to get the machine name and it worked successfully.


Now we have upgraded the instance to CRM 2016 and it is in a new server. Now the code errors out as below.

Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

 

It is not a sandbox plugin (Isolation Mode is None. In DB, isolation mode is 1). The plugin is running under calling user context (The same error occurs even when running under service account). We have also changed the key for dll multiple times, but no luck.

 

Request your help!!


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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