Hello All,

I have recently download nopcommerce 1.80 and deploy on local server. While running the program I get Time Out expired in below function.

public static List<Poll> GetPolls(int languageId, int pollCount, bool loadShownOnHomePageOnly)
        {


            bool showHidden = NopContext.Current.IsAdmin;

            var context = ObjectContextHelper.CurrentObjectContext;
            var query = (IQueryable<Poll>)context.Polls;
            if (!showHidden)
            {
                query = query.Where(p => p.Published);
                query = query.Where(p => !p.StartDate.HasValue || p.StartDate <= DateTime.UtcNow);
                query = query.Where(p => !p.EndDate.HasValue || p.EndDate >= DateTime.UtcNow);
            }
            if (loadShownOnHomePageOnly)
            {
                query = query.Where(p => p.ShowOnHomePage);
            }
            if (languageId > 0)
            {
                query = query.Where(p => p.LanguageId == languageId);
            }

            query = query.OrderBy(p => p.DisplayOrder);
            if (pollCount > 0)
            {
                query = query.Take(pollCount);
            }
      
           var polls = query.ToList();

            return polls;
        }

I have bold the line where I got the error. Please help me out. Thanks in advance.

Thanks
Satyabrat