Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Plugin Execution Error

Posted on by Microsoft Employee

Hi,

I have created 2 plugins. first one will trigger while we create the "Lead" and the second one will trigger in "Enrollment"(custom entity) creation time. I try to call an API within the plugin in both cases. But the plugin is not working and getting some errors.

1) Lead

    56767.Capture.PNG

When I execute this plugin I got an error.
" One or more errors occurred.An error occurred while sending the request.Unable to connect to the remote serverA connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 52.191.119.191:8089"

2) Enrollment

   56767.Capture.PNG

When I execute this plugin getting an error.

"One or more errors occurred.Request for the permission of type 'System.Net.WebPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."

Please advise me to solve these issues.
Thanks.
Gokul K

 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin Execution Error

    Did you solve the issue?

    Did the problem was a port? 

  • Suggested answer
    SergeyT Profile Picture
    SergeyT 310 on at
    RE: Plugin Execution Error

    Hi.

    Most probably the root of the issue is that you are using non-standard port for outgoing web requests. Only HTTP and HTTPS are allowed in sandboxes. Try to use 80 or 443 port.

    More details: msdn.microsoft.com/.../gg334752.aspx

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans