Configure Proxy Settings to Avoid Connection Refused Error

If you are using a Proxy server and EmpowerID needs to communicate with systems outside your network, you need to perform the following procedure to avoid receiving an "Unable to connect to the remote server → System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it" error. To resolve the error, add the proxy settings in the configurations file for Web.SiteRoot and the EmpowerID Worker Role Windows service.

Configure Proxy Settings

  1. Get the correct proxy address from the Internet Explorer > Internet Options > Connections > LAN Settings > Advanced section.

     

  2. Edit the web.config located in <Installation Folder>\TheDotNetFactory\EmpowerID\Web Sites\EmpowerID.Web.SiteRoot

  3. Edit the below XML Configuration files in <Installation Folder>\TheDotNetFactory\EmpowerID\Programs

    • EmpowerIDWorkerRoleService.exe.config

    • EmpowerIDWorkerRoleService_WorkerProcess.exe.config

  4. Add the system.net section under the configuration tag. Configure the bypassonlocal value as configured in the LAN Settings.

    <?xml version="1.0" encoding="UTF-8"?> <configuration> ... <system.net> <defaultProxy> <proxy proxyaddress="http://10.28.64.65:8080" bypassonlocal="true" /> <bypasslist> <add address="\w+.customerpr.com$" /> <add address="\w+.customer.com$" /> <add address="\w+.org$" /> </bypasslist> </defaultProxy> </system.net> ... </configuration>