Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Plugin Registration Tool error when debugging HttpWebResponse response

Posted on by Microsoft Employee

I used the "persist to entity" for the debug  of plugin(due to the fact that my plugin is triggered via Action in javascript so I can only choose this debug option).

Code snippet:

WebRequest request = WebRequest.Create(SVC_URL + string.Format("?methods=3&parameter={0}", _id));

request.Method = "GET";
request.ContentType = @"application/json; charset=utf-8";
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

While I am debugging, it hit an error at:

"HttpWebResponse response (HttpWebResponse)request.GetResponse();"

and I couldn't proceed the plugin debug.

PRT_5F00_Error.PNG

To verify above code is working, I had created a console program with similar code & I am able to "step over" the code during debugging & the code work fine without error.

Any clues why the tool stop working, I am using the 2016 version.

Thanks guys.

*This post is locked for comments

  • Suggested answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: Plugin Registration Tool error when debugging HttpWebResponse response

    Hi Kentan,

    Can you try doing the following?

    1. Ensure that the Plugin Registration tool version you are using is from the SDK of the CRM version you are using.

    2. Run the tool as an Administrator.

  • Georgy Profile Picture
    Georgy on at
    RE: Plugin Registration Tool error when debugging HttpWebResponse response

    Hi Kentan,

    As plugin registration tool is actually doing a reply, I think you can't access any resource outside CRM. That simply won't work.

  • RE: Plugin Registration Tool error when debugging HttpWebResponse response

    Hi,

    Can you try to run the tool as an administrator and check?

    Thanks.

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans