Make sure that Internet Explorer (or your browser) is not set to "Work Offline" (this options is in the File menu). If it doesn't help, try switching the proxy settings from "Auto-detect" to "No proxy".
(I'm assuming you're not connecting to the Internet via proxy).
Left click the avast icon > Settings
Update (Basic) > Details > Proxy