HTTP Error Code 504
The message for this error code is "Gateway Timeout."
The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server specified by the URI (e.g. HTTP, FTP, LDAP) or some other auxiliary server (e.g. DNS) it needed to access in attempting to complete the request.
it should not be your program's problem, must be network or network settings problem, go to IE menu Tools->Internet Options->Connection->LAN Settings, try to clear "Automatically detect settings", or ask your network administrator