Hi all,
I am developing a plugin that would get send the XML data to the external web-service and the plugin would consume the response and finally display the result to the end-user.
Version is Microsoft Dynamics 365 (8.2.2.112) (DB 8.2.2.112) on-premises.
I am stuck at getting the response from the external web-service, I am attempting to save the response to "VAR" (the response is returned as string, also tried to save it as a string, no luck).
Problem is that I am getting the "System.Security.Permissions.EnvironmentPermission" exception. The plugin is non-sandboxed.
One interesting thing that I've noticed, that when the plugin is debugged using the profile from the plug-in profiler and when the "Isolation mode" is set to "none" on the "Settings" tab debug window, the plugin works perfectly fine (example below).
I am debugging on my local machine on the company network.
Has anyone encountered similar issues? I have tried to search for the System.Security.Permissions.EnvironmentPermission exception, however the results were not helpful in resolving this situation.