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
Get the correct proxy address from the Internet Explorer > Internet Options > Connections > LAN Settings > Advanced section.
Â
Edit the web.config located in
<Installation Folder>\TheDotNetFactory\EmpowerID\Web Sites\EmpowerID.Web.SiteRoot
Edit the below XML Configuration files in
<Installation Folder>\TheDotNetFactory\EmpowerID\Programs
EmpowerIDWorkerRoleService.exe.config
EmpowerIDWorkerRoleService_WorkerProcess.exe.config
Add the
system.net
section under theÂconfiguration
tag. Configure thebypassonlocal
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>