Server stops and connected timeout opos up

I found that there is an error in my OS Event viewer and the thing i did to fix it were to open CMD as an administartor and run sfc /scannow. Then i repaird Microsoft visual c++ package from my Control pannel under programs and features.