web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by

"

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
    11,615 Moderator on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans