Click here to Skip to main content
15,885,782 members
Articles / .NET

Sequence contains no elements

14 Jan 2010CPOL 28.1K   1  
The error occurs when you try to access an object returned by a Linq query with 0 elements in the result set an InvalidOperationException is thrown. here is a simulation to generate the error and fix it: LINQ: Sequence contains no elements[^]
We're sorry, but the article you are trying to view was deleted at 27 Apr 2020.

Please go to the .NET Table of Contents to view the list of available articles in this section.