I created an internal website for our company. It run smoothly for several months and then I made a major update due to user suggestion. When I run in live, it run normally.
I fixed this error by finding the exact procedure in event viewer where timeout was happening.
Connected to the same Database in SSMS and ran:
exec sp_recompile 'Procedure name'
It showed the below message:
Object 'Procedure name' was successfully marked for recompilation.