Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

407 Proxy Authentication Required when trying to call a web service inside a Plugin

Posted on by 732

Hello,

We are running into a 407 Proxy Authentication Required problem when we try to call a webservice inside a plugin, we tried to modify the server's proxy or to set the default credentials inside C# code but still get the same problem.

using (WebClientEx client = new WebClientEx())

                    {

                       /client.Timeout = 60000;
client.Headers.Add(HttpRequestHeader.ContentType, "application/json");
licenseResposeJSON = client.UploadString(Url.ToString(), "1");

                    }

The problem only resides on the production envirennement. is it related to a firewall or some physical constraint? but we still can not sport the exact cause.

Thanks 

*This post is locked for comments

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