Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Dynamics CRM 365 Plugin disregarding isolation mode

Posted on by 25

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.

2021_2D00_03_2D00_15-19_5F00_18_5F00_30_2D00_Plugin-Registration-Tool.png

  • Suggested answer
    Johao Larios Profile Picture
    Johao Larios 1,795 on at
    RE: Dynamics CRM 365 Plugin disregarding isolation mode

    Hello rv1911

    For this one I recommend you to open a ticket with Microsoft, as you mentioned, it seems that something else may be occurring over there. 

  • rv1911 Profile Picture
    rv1911 25 on at
    RE: Dynamics CRM 365 Plugin disregarding isolation mode

    Update:

    I am wondering if this could be related to a security issue, maybe the account that tries to save the value on the server doesn't have the rights to do so? I am wondering how such variables are stored in CRM plugins.

  • rv1911 Profile Picture
    rv1911 25 on at
    RE: Dynamics CRM 365 Plugin disregarding isolation mode

    That's the way it is registered now:

    2021_2D00_03_2D00_15-22_5F00_36_5F00_53_2D00_PluginRegistrationView.png

  • Suggested answer
    Johao Larios Profile Picture
    Johao Larios 1,795 on at
    RE: Dynamics CRM 365 Plugin disregarding isolation mode

    How is the plugin registered?

    When you are registering it, try by choosing None in Specify the Isolation Mode

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans