CRM 2015 The remote server returned an error: (407) Proxy Authentication Required.

Posted on Posted in MS CRM 2015

When connection to CRM on-line using Plugin registration tool following error occurs

The remote server returned an error: (407) Proxy Authentication Required.

This usually happens because of proxy settings and work around is to edit config (pluginregisteration.exe.config) file and add following lines

<system.net>
<defaultProxy useDefaultCredentials=”true”>

</defaultProxy>
</system.net>

These lines can be added under <configuration>

Also, make sure you select Office 365 when connecting to MS Online otherwise following error occurs

You don’t have permission to access any of the organizations in the Microsoft Dynamics CRM Online region that you specified. If you’re not sure which region your organization resides in, choose “Don’t know” for the CRM region and try again. Otherwise check with your CRM administrator.