CustomUser's proxy was not configured. So UseDefaultWebProxy
would refer to an invalid proxy.
There are some solutions to this kind of problem
- Set target user proxy settings (the most appropriate IMO)
- Set binding ProxyAddress property
- Set default app proxy in .config file tag
configuration/system.net/defaultProxy/proxy
<proxy proxyaddress="http://ip:port" />