Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

While consuming third party service in plugin, plugin registration tools stops working while debugging at GetRequestStream function

Posted on by Microsoft Employee

"

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);

         request.Method = "POST";

         request.ContentType = "application/x-www-form-urlencoded";

         request.Headers.Add("Authorization: " + "Bearer" + " " + KEY);

         request.ContentLength = data.Length;

         Stream stream = request.GetRequestStream();    // error, here my debugger stops and plugin registration tools stops abruptly

         {

             stream.Write(data, 0, data.Length);

         }

         var response = (HttpWebResponse)request.GetResponse();

         var responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();

         }

"

*This post is locked for comments

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: While consuming third party service in plugin, plugin registration tools stops working while debugging at GetRequestStream function

    I also experienced this. You can add trace logs using ITracingService & check the logs for debugging purpose instead of profiling/debugging.

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans