XrmToolBox icon indicating copy to clipboard operation
XrmToolBox copied to clipboard

Proxy Authentication Required issue with XRMToolBox

Open ahmet269 opened this issue 7 years ago • 10 comments

I can connect to CRM by creating a connection and I confirm that it is connected at the bottom of XRMToolBox app. but when I click on Plugins Store, I instantly receive 'The remote server returned an error: (407) Proxy Authentication Required. I was hoping that it will be picked from my IE settings.

ahmet269 avatar Jul 18 '17 16:07 ahmet269

Use option in Plugins Store form to define a proxy

MscrmTools avatar Jul 18 '17 16:07 MscrmTools

I tried this but then I get promted to restart the tool. and when I do, I no longer remembers my details

ahmet269 avatar Jul 18 '17 17:07 ahmet269

Is there a way of saving proxy user credentials in the config file because it doesn't remember them when I manually type in?

ahmet269 avatar Jul 19 '17 10:07 ahmet269

I can confirm with ahmet269. Settings in XRM Tool Box and in the PlugIn store are forgotten on exit.

pb1051 avatar Mar 27 '19 18:03 pb1051

when doing the latest update (and previous ones) on a client site that has a forced proxy with forced authentication, whilst the XRMToolbox works fine with the proxy, I get a 407 Proxy Authentication Required from XrmToolbox.Autoupdater.exe

Does the Auto Update exe also use the system proxy settings (or those in xrmtoolbox?)

DerekHAu avatar Oct 22 '20 02:10 DerekHAu

Can you try to add an XrmToolBox.AutoUpdater.exe.config file with the following content:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
  </startup>
  <system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true">
      <proxy autoDetect="True" bypassonlocal="False" />
    </defaultProxy>
  </system.net>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.8.0" newVersion="5.2.8.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.29.0.1078" newVersion="2.29.0.1078" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.1.1.3" newVersion="4.1.1.3" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

MscrmTools avatar Oct 22 '20 06:10 MscrmTools

Unfortunately, no cigar. I finally have a pending update on that client's workstation. I had to create the config file, and pasted the above content and still got the 407 Proxy Auth Required error. :(

DerekHAu avatar Nov 26 '20 00:11 DerekHAu

The above XML could also be adapted to provide explicit details about required proxy but I don't know what these details are so you will need to check with your IT

MscrmTools avatar Nov 26 '20 07:11 MscrmTools

I'll have to try that next time I am with that client.

DerekHAu avatar Nov 26 '20 22:11 DerekHAu

Hi @MscrmTools I tried to set the proxy in the settings options but it's not saved.

Set the proxy > click ok > re-open the settings > the proxy disappears ^^ image

Also adding XrmToolBox.AutoUpdater.exe.config not working on my side. Could you help on this point?

stact avatar Feb 01 '22 15:02 stact