This question is locked. New answers and comments are not allowed.
I am getting the 'Result set is discarded : New database transaction was started' error in code. I am retrieving data from DataAccess using the below LINQ query and then in code I am just filtering and looping through the data in a MVC view. I am NOT doing any updates to the data at all. The page was working properly before but now is not working. Updates were made to the DataAccess rlinq file this morning but none that affected the table in question.
Please help resolve the issue!
return
(from f
in
dbContext.Fundraisers
where f.Status ==
'A'
orderby f.Name
select
new
ViewModels.Site.FundraiserSummary
{
FundraiserID = f.FundraiserID,
CustomURL = f.CustomURL,
EventType = f.EventID.HasValue ? f.Event.EventType.TypeName :
""
,
FundraiserTypeID = f.FundraiserTypeID,
Name = f.Name,
IsFeatured = f.IsFeatured,
Picture = f.Picture,
TotalRaised = dbContext.GetTotalRaisedForFundraiser(f.FundraiserID)
});