Iversis
All articles

Using PluginRegistrationTool and XrmToolBox plugins behind proxy

By Iversis1 min read

When working for a large organisation, your development machine would most likely be behind a proxy server for obvious security reason.

Simply running the PluginRegistrationTool or some XrmToolBox plugins such as Early Bound Generator by D La B to connect to Dynamics 365 Online instance, you will be getting error similar to below

Error: You don't have permission to access any of the organizations in the Microsoft Common Data Service region that you specified. If you're not sure which region your organization resides in, choose "Don't know" for the CDS region and try again. Otherwise check with your CDS administrator.

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

To resolve this error, simply find the .config file for the application and add the following lines within the <configuration> element.

<configuration>
  <system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true">
    </defaultProxy>
  </system.net>
  ...
</configuration>

For PluginRegistrationTool, the .config file is simply in the same folder.

Using PluginRegistrationTool and XrmToolBox plugins behind proxy

For XrmToolBox, navigate to its plugin folder, eg. C:\Users<username>\AppData\Roaming\MscrmTools\XrmToolBox\Plugins then locate the folder of the plugin you use.

For the Early Bound Generator, open the crmsvcutil.exe.config in text editor and insert the above xml configuration.

Using PluginRegistrationTool and XrmToolBox plugins behind proxy

That's it for now.