Computer stop responding when connected to internet

I am using a Windows 7 Operating System and using a wired connection to the internet, every time I connect my computer to the internet my computer suddenly stops responding. I emptied the temp folder in the windows and user account including the temporary internet file folder in the user account. As a result I can connect to the internet but after 5 to 10 min computer stops responding. But when I disconnect the LAN cable my computer never stop responding until I shutdown my computer.
Need your help.
