The problem is solved! I think there is some difference between environment variables Windows 7 and Windows 10. I got the idea from this this post and the problem is solved!
driver = new ChromeDriver(@"c:\chromedriver.exe");
I copied the chromedriver.exe to some specific place and called it directly. I replaced the code I mentioned in the question with above code and chrome driver is working fine.