I am getting timeout errors on the following line of code and it does not happen very often, like once in every twenty times it does happen.
19 times the following line doesn't give any error but all of sudden it gives the time out error.
Any help would be appreciated.
CStaffUser Staffuser = CStaffUser.Login(ConfigurationManager.AppSettings["tloginid"].ToString(), ConfigurationManager.AppSettings["tpassword"].ToString());
Thanks,
Sapna
Timeout error occurs when
Timeout error occurs when your iMSI15 membership web services aren’t responding within period of time. Make sure memberships web services are always available when you calling login methods.
I would suggest you to run ASI publishing services to avoid timeout errors on your test/live systems. Which stops IIS to recycle the application pool when the site is not accessed period of time.